home *** CD-ROM | disk | FTP | other *** search
/ Level 2005 Christmas (DVD) / Level_2005-XMAS_134_DVD_Knightshift.iso / Updates / Land of the Dead / System / GUI.u / GUIComponent_ScriptText.TextBuffer < prev    next >
Unknown  |  2005-12-07  |  12.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5a c8 01 2f 2f 20 43 6f |........|Z..// Co|
|00000010| 70 79 72 69 67 68 74 20 | 28 43 29 20 32 30 30 35 |pyright |(C) 2005|
|00000020| 20 42 72 61 69 6e 62 6f | 78 20 47 61 6d 65 73 2e | Brainbo|x Games.|
|00000030| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|00000040| 72 76 65 64 2e 0d 0a 2f | 2f 20 53 65 70 74 65 6d |rved.../|/ Septem|
|00000050| 62 65 72 20 32 37 2c 20 | 32 30 30 35 0d 0a 2f 2f |ber 27, |2005..//|
|00000060| 20 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | =======|========|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 0d 0a 2f | 2f 20 20 43 6c 61 73 73 |=====../|/ Class|
|000000b0| 3a 20 20 47 55 49 2e 47 | 55 49 43 6f 6d 70 6f 6e |: GUI.G|UICompon|
|000000c0| 65 6e 74 0d 0a 2f 2f 0d | 0a 2f 2f 09 47 55 49 43 |ent..//.|.//.GUIC|
|000000d0| 6f 6d 70 6f 6e 65 6e 74 | 73 20 61 72 65 20 74 68 |omponent|s are th|
|000000e0| 65 20 6d 6f 73 74 20 62 | 61 73 69 63 20 62 75 69 |e most b|asic bui|
|000000f0| 6c 64 69 6e 67 20 62 6c | 6f 63 6b 73 20 6f 66 20 |lding bl|ocks of |
|00000100| 6d 65 6e 75 73 2e 0d 0a | 2f 2f 0d 0a 2f 2f 20 20 |menus...|//..// |
|00000110| 57 72 69 74 74 65 6e 20 | 62 79 20 4a 6f 65 20 57 |Written |by Joe W|
|00000120| 69 6c 63 6f 78 0d 0a 2f | 2f 20 20 28 63 29 20 32 |ilcox../|/ (c) 2|
|00000130| 30 30 32 2c 20 45 70 69 | 63 20 47 61 6d 65 73 2c |002, Epi|c Games,|
|00000140| 20 49 6e 63 2e 20 20 41 | 6c 6c 20 52 69 67 68 74 | Inc. A|ll Right|
|00000150| 73 20 52 65 73 65 72 76 | 65 64 0d 0a 2f 2f 20 3d |s Reserv|ed..// =|
|00000160| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000170| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000180| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000190| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000001a0| 3d 3d 3d 0d 0a 0d 0a 63 | 6c 61 73 73 20 47 55 49 |===....c|lass GUI|
|000001b0| 43 6f 6d 70 6f 6e 65 6e | 74 20 65 78 74 65 6e 64 |Componen|t extend|
|000001c0| 73 20 47 55 49 0d 0a 09 | 09 4e 61 74 69 76 65 3b |s GUI...|.Native;|
|000001d0| 0d 0a 0d 0a 2f 2f 20 28 | 63 70 70 74 65 78 74 29 |....// (|cpptext)|
|000001e0| 0d 0a 2f 2f 20 28 63 70 | 70 74 65 78 74 29 0d 0a |..// (cp|ptext)..|
|000001f0| 2f 2f 20 28 63 70 70 74 | 65 78 74 29 0d 0a 2f 2f |// (cppt|ext)..//|
|00000200| 20 28 63 70 70 74 65 78 | 74 29 0d 0a 2f 2f 20 28 | (cpptex|t)..// (|
|00000210| 63 70 70 74 65 78 74 29 | 0d 0a 2f 2f 20 28 63 70 |cpptext)|..// (cp|
|00000220| 70 74 65 78 74 29 0d 0a | 2f 2f 20 28 63 70 70 74 |ptext)..|// (cppt|
|00000230| 65 78 74 29 0d 0a 2f 2f | 20 28 63 70 70 74 65 78 |ext)..//| (cpptex|
|00000240| 74 29 0d 0a 2f 2f 20 28 | 63 70 70 74 65 78 74 29 |t)..// (|cpptext)|
|00000250| 0d 0a 2f 2f 20 28 63 70 | 70 74 65 78 74 29 0d 0a |..// (cp|ptext)..|
|00000260| 2f 2f 20 28 63 70 70 74 | 65 78 74 29 0d 0a 2f 2f |// (cppt|ext)..//|
|00000270| 20 28 63 70 70 74 65 78 | 74 29 0d 0a 2f 2f 20 28 | (cpptex|t)..// (|
|00000280| 63 70 70 74 65 78 74 29 | 0d 0a 2f 2f 20 28 63 70 |cpptext)|..// (cp|
|00000290| 70 74 65 78 74 29 0d 0a | 2f 2f 20 28 63 70 70 74 |ptext)..|// (cppt|
|000002a0| 65 78 74 29 0d 0a 2f 2f | 20 28 63 70 70 74 65 78 |ext)..//| (cpptex|
|000002b0| 74 29 0d 0a 2f 2f 20 28 | 63 70 70 74 65 78 74 29 |t)..// (|cpptext)|
|000002c0| 0d 0a 2f 2f 20 28 63 70 | 70 74 65 78 74 29 0d 0a |..// (cp|ptext)..|
|000002d0| 2f 2f 20 28 63 70 70 74 | 65 78 74 29 0d 0a 2f 2f |// (cppt|ext)..//|
|000002e0| 20 28 63 70 70 74 65 78 | 74 29 0d 0a 2f 2f 20 28 | (cpptex|t)..// (|
|000002f0| 63 70 70 74 65 78 74 29 | 0d 0a 2f 2f 20 28 63 70 |cpptext)|..// (cp|
|00000300| 70 74 65 78 74 29 0d 0a | 2f 2f 20 28 63 70 70 74 |ptext)..|// (cppt|
|00000310| 65 78 74 29 0d 0a 2f 2f | 20 28 63 70 70 74 65 78 |ext)..//| (cpptex|
|00000320| 74 29 0d 0a 2f 2f 20 28 | 63 70 70 74 65 78 74 29 |t)..// (|cpptext)|
|00000330| 0d 0a 2f 2f 20 28 63 70 | 70 74 65 78 74 29 0d 0a |..// (cp|ptext)..|
|00000340| 2f 2f 20 28 63 70 70 74 | 65 78 74 29 0d 0a 2f 2f |// (cppt|ext)..//|
|00000350| 20 28 63 70 70 74 65 78 | 74 29 0d 0a 2f 2f 20 28 | (cpptex|t)..// (|
|00000360| 63 70 70 74 65 78 74 29 | 0d 0a 2f 2f 20 28 63 70 |cpptext)|..// (cp|
|00000370| 70 74 65 78 74 29 0d 0a | 2f 2f 20 28 63 70 70 74 |ptext)..|// (cppt|
|00000380| 65 78 74 29 0d 0a 2f 2f | 20 28 63 70 70 74 65 78 |ext)..//| (cpptex|
|00000390| 74 29 0d 0a 0d 0a 2f 2f | 20 56 61 72 69 61 62 6c |t)....//| Variabl|
|000003a0| 65 73 0d 0a 0d 0a 76 61 | 72 09 09 47 55 49 43 6f |es....va|r..GUICo|
|000003b0| 6d 70 6f 6e 65 6e 74 20 | 09 09 4d 65 6e 75 4f 77 |mponent |..MenuOw|
|000003c0| 6e 65 72 3b 09 09 09 09 | 2f 2f 20 43 61 6c 6c 62 |ner;....|// Callb|
|000003d0| 61 63 6b 20 74 6f 20 74 | 68 65 20 43 6f 6d 70 6f |ack to t|he Compo|
|000003e0| 6e 65 6e 74 20 74 68 61 | 74 20 6f 77 6e 73 20 74 |nent tha|t owns t|
|000003f0| 68 69 73 20 6f 6e 65 0d | 0a 76 61 72 09 09 65 4d |his one.|.var..eM|
|00000400| 65 6e 75 53 74 61 74 65 | 09 09 4d 65 6e 75 53 74 |enuState|..MenuSt|
|00000410| 61 74 65 3b 09 09 09 09 | 09 2f 2f 20 55 73 65 64 |ate;....|.// Used|
|00000420| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 | to dete|rmine th|
|00000430| 65 20 63 75 72 72 65 6e | 74 20 73 74 61 74 65 20 |e curren|t state |
|00000440| 6f 66 20 74 68 69 73 20 | 63 6f 6d 70 6f 6e 65 6e |of this |componen|
|00000450| 74 0d 0a 0d 0a 2f 2f 20 | 52 65 6e 64 65 72 53 74 |t....// |RenderSt|
|00000460| 79 6c 65 20 61 6e 64 20 | 4d 65 6e 75 43 6f 6c 6f |yle and |MenuColo|
|00000470| 72 20 61 72 65 20 75 73 | 75 61 6c 6c 79 20 70 75 |r are us|ually pu|
|00000480| 6c 6c 65 64 20 66 72 6f | 6d 20 74 68 65 20 50 61 |lled fro|m the Pa|
|00000490| 72 65 6e 74 20 6d 65 6e | 75 2c 20 75 6e 6c 65 73 |rent men|u, unles|
|000004a0| 73 20 73 70 65 63 69 66 | 69 63 6c 6c 79 20 6f 76 |s specif|iclly ov|
|000004b0| 65 72 72 69 64 64 65 6e | 0d 0a 0d 0a 76 61 72 28 |erridden|....var(|
|000004c0| 4d 65 6e 75 29 09 73 74 | 72 69 6e 67 09 09 09 09 |Menu).st|ring....|
|000004d0| 49 6e 69 4f 70 74 69 6f | 6e 3b 09 09 09 09 09 2f |IniOptio|n;...../|
|000004e0| 2f 20 50 6f 69 6e 74 73 | 20 74 6f 20 74 68 65 20 |/ Points| to the |
|000004f0| 49 4e 49 20 6f 70 74 69 | 6f 6e 20 74 6f 20 6c 6f |INI opti|on to lo|
|00000500| 61 64 20 66 6f 72 20 74 | 68 69 73 20 63 6f 6d 70 |ad for t|his comp|
|00000510| 6f 6e 65 6e 74 0d 0a 76 | 61 72 28 4d 65 6e 75 29 |onent..v|ar(Menu)|
|00000520| 09 73 74 72 69 6e 67 09 | 09 09 09 49 6e 69 44 65 |.string.|...IniDe|
|00000530| 66 61 75 6c 74 3b 09 09 | 09 09 09 2f 2f 20 54 68 |fault;..|...// Th|
|00000540| 65 20 64 65 66 61 75 6c | 74 20 76 61 6c 75 65 20 |e defaul|t value |
|00000550| 66 6f 72 20 61 20 6d 69 | 73 73 69 6e 67 20 69 6e |for a mi|ssing in|
|00000560| 69 20 6f 70 74 69 6f 6e | 0d 0a 76 61 72 28 4d 65 |i option|..var(Me|
|00000570| 6e 75 29 09 73 74 72 69 | 6e 67 09 09 09 09 53 74 |nu).stri|ng....St|
|00000580| 79 6c 65 4e 61 6d 65 3b | 09 09 09 09 09 2f 2f 20 |yleName;|.....// |
|00000590| 4e 61 6d 65 20 6f 66 20 | 6d 79 20 53 74 79 6c 65 |Name of |my Style|
|000005a0| 0d 0a 76 61 72 28 4d 65 | 6e 75 29 09 62 6f 6f 6c |..var(Me|nu).bool|
|000005b0| 09 09 09 09 62 42 6f 75 | 6e 64 54 6f 50 61 72 65 |....bBou|ndToPare|
|000005c0| 6e 74 3b 09 09 09 09 2f | 2f 20 55 73 65 20 74 68 |nt;..../|/ Use th|
|000005d0| 65 20 50 61 72 65 6e 74 | 73 20 42 6f 75 6e 64 73 |e Parent|s Bounds|
|000005e0| 20 66 6f 72 20 61 6c 6c | 20 70 6f 73 69 74 69 6f | for all| positio|
|000005f0| 6e 69 6e 67 0d 0a 76 61 | 72 28 4d 65 6e 75 29 09 |ning..va|r(Menu).|
|00000600| 62 6f 6f 6c 09 09 09 09 | 62 53 63 61 6c 65 54 6f |bool....|bScaleTo|
|00000610| 50 61 72 65 6e 74 3b 09 | 09 09 09 2f 2f 20 55 73 |Parent;.|...// Us|
|00000620| 65 20 74 68 65 20 50 61 | 72 65 6e 74 20 66 6f 72 |e the Pa|rent for|
|00000630| 20 73 63 61 6c 69 6e 67 | 0d 0a 76 61 72 28 4d 65 | scaling|..var(Me|
|00000640| 6e 75 29 09 62 6f 6f 6c | 09 09 09 09 62 48 61 73 |nu).bool|....bHas|
|00000650| 46 6f 63 75 73 3b 09 09 | 09 09 09 2f 2f 20 44 6f |Focus;..|...// Do|
|00000660| 65 73 20 74 68 69 73 20 | 63 6f 6d 70 6f 6e 65 6e |es this |componen|
|00000670| 74 20 63 75 72 72 65 6e | 74 6c 79 20 68 61 76 65 |t curren|tly have|
|00000680| 20 69 6e 70 75 74 20 66 | 6f 63 75 73 0d 0a 76 61 | input f|ocus..va|
|00000690| 72 28 4d 65 6e 75 29 09 | 62 6f 6f 6c 09 09 09 09 |r(Menu).|bool....|
|000006a0| 62 56 69 73 69 62 6c 65 | 3b 09 09 09 09 09 2f 2f |bVisible|;.....//|
|000006b0| 20 49 73 20 74 68 69 73 | 20 63 6f 6d 70 6f 6e 65 | Is this| compone|
|000006c0| 6e 74 20 63 75 72 72 65 | 6e 74 6c 79 20 76 69 73 |nt curre|ntly vis|
|000006d0| 69 62 6c 65 0d 0a 76 61 | 72 28 4d 65 6e 75 29 09 |ible..va|r(Menu).|
|000006e0| 62 6f 6f 6c 09 09 09 09 | 62 41 63 63 65 70 74 73 |bool....|bAccepts|
|000006f0| 49 6e 70 75 74 3b 09 09 | 09 09 2f 2f 20 44 6f 65 |Input;..|..// Doe|
|00000700| 73 20 74 68 69 73 20 63 | 6f 6e 74 72 6f 6c 20 61 |s this c|ontrol a|
|00000710| 63 63 65 70 74 20 69 6e | 70 75 74 0d 0a 76 61 72 |ccept in|put..var|
|00000720| 28 4d 65 6e 75 29 09 62 | 6f 6f 6c 09 09 09 09 62 |(Menu).b|ool....b|
|00000730| 43 61 70 74 75 72 65 54 | 61 62 73 3b 09 09 09 09 |CaptureT|abs;....|
|00000740| 2f 2f 20 54 68 69 73 20 | 63 6f 6e 74 72 6f 6c 20 |// This |control |
|00000750| 77 61 6e 74 73 20 74 61 | 62 73 0d 0a 76 61 72 28 |wants ta|bs..var(|
|00000760| 4d 65 6e 75 29 09 62 6f | 6f 6c 09 09 09 09 62 43 |Menu).bo|ol....bC|
|00000770| 61 70 74 75 72 65 4d 6f | 75 73 65 3b 09 09 09 09 |aptureMo|use;....|
|00000780| 2f 2f 20 53 65 74 20 74 | 68 69 73 20 69 66 20 74 |// Set t|his if t|
|00000790| 68 65 20 63 6f 6e 74 72 | 6f 6c 20 73 68 6f 75 6c |he contr|ol shoul|
|000007a0| 64 20 63 61 70 74 75 72 | 65 20 74 68 65 20 6d 6f |d captur|e the mo|
|000007b0| 75 73 65 20 77 68 65 6e | 20 70 72 65 73 73 65 64 |use when| pressed|
|000007c0| 0d 0a 76 61 72 28 4d 65 | 6e 75 29 09 62 6f 6f 6c |..var(Me|nu).bool|
|000007d0| 09 09 09 09 62 4e 65 76 | 65 72 46 6f 63 75 73 3b |....bNev|erFocus;|
|000007e0| 09 09 09 09 2f 2f 20 54 | 68 69 73 20 63 6f 6e 74 |....// T|his cont|
|000007f0| 72 6f 6c 20 73 68 6f 75 | 6c 64 20 6e 65 76 65 72 |rol shou|ld never|
|00000800| 20 66 75 6c 6c 79 20 72 | 65 63 65 69 76 65 20 66 | fully r|eceive f|
|00000810| 6f 63 75 73 0d 0a 76 61 | 72 28 4d 65 6e 75 29 09 |ocus..va|r(Menu).|
|00000820| 62 6f 6f 6c 09 09 09 09 | 62 52 65 70 65 61 74 43 |bool....|bRepeatC|
|00000830| 6c 69 63 6b 3b 09 09 09 | 09 2f 2f 20 48 61 76 65 |lick;...|.// Have|
|00000840| 20 74 68 65 20 73 79 73 | 74 65 6d 20 61 63 63 65 | the sys|tem acce|
|00000850| 70 74 20 68 6f 6c 64 69 | 6e 67 20 64 6f 77 6e 20 |pt holdi|ng down |
|00000860| 6f 66 20 74 68 65 20 6d | 6f 75 73 65 0d 0a 76 61 |of the m|ouse..va|
|00000870| 72 28 4d 65 6e 75 29 09 | 62 6f 6f 6c 09 09 09 09 |r(Menu).|bool....|
|00000880| 62 52 65 71 75 69 72 65 | 52 65 6c 65 61 73 65 43 |bRequire|ReleaseC|
|00000890| 6c 69 63 6b 3b 09 09 2f | 2f 20 49 66 20 54 72 75 |lick;../|/ If Tru|
|000008a0| 65 2c 20 74 68 69 73 20 | 63 6f 6d 70 6f 6e 65 6e |e, this |componen|
|000008b0| 74 20 77 61 6e 74 73 20 | 74 68 65 20 63 6c 69 63 |t wants |the clic|
|000008c0| 6b 20 6f 6e 20 72 65 6c | 65 61 73 65 20 65 76 65 |k on rel|ease eve|
|000008d0| 6e 20 69 66 20 69 74 27 | 73 20 6e 6f 74 20 61 63 |n if it'|s not ac|
|000008e0| 74 69 76 65 0d 0a 76 61 | 72 28 4d 65 6e 75 29 09 |tive..va|r(Menu).|
|000008f0| 47 55 49 43 6f 6d 70 6f | 6e 65 6e 74 09 09 46 6f |GUICompo|nent..Fo|
|00000900| 63 75 73 49 6e 73 74 65 | 61 64 3b 09 09 09 09 2f |cusInste|ad;..../|
|00000910| 2f 20 57 68 6f 20 73 68 | 6f 75 6c 64 20 67 65 74 |/ Who sh|ould get|
|00000920| 20 74 68 65 20 66 6f 63 | 75 73 20 69 6e 73 74 65 | the foc|us inste|
|00000930| 61 64 20 6f 66 20 74 68 | 69 73 20 63 6f 6e 74 72 |ad of th|is contr|
|00000940| 6f 6c 20 69 66 20 62 4e | 65 76 65 72 46 6f 63 75 |ol if bN|everFocu|
|00000950| 73 0d 0a 76 61 72 28 4d | 65 6e 75 29 09 6c 6f 63 |s..var(M|enu).loc|
|00000960| 61 6c 69 7a 65 64 20 73 | 74 72 69 6e 67 09 48 69 |alized s|tring.Hi|
|00000970| 6e 74 3b 09 09 09 09 09 | 09 2f 2f 20 54 68 65 20 |nt;.....|.// The |
|00000980| 68 69 6e 74 20 74 68 61 | 74 20 67 65 74 73 20 64 |hint tha|t gets d|
|00000990| 69 73 70 6c 61 79 65 64 | 20 66 6f 72 20 74 68 69 |isplayed| for thi|
|000009a0| 73 20 63 6f 6d 70 6f 6e | 65 6e 74 0d 0a 76 61 72 |s compon|ent..var|
|000009b0| 28 4d 65 6e 75 29 09 66 | 6c 6f 61 74 09 09 09 09 |(Menu).f|loat....|
|000009c0| 57 69 6e 54 6f 70 2c 57 | 69 6e 4c 65 66 74 3b 09 |WinTop,W|inLeft;.|
|000009d0| 09 09 09 2f 2f 20 57 68 | 65 72 65 20 64 6f 65 73 |...// Wh|ere does|
|000009e0| 20 74 68 69 73 20 63 6f | 6d 70 6f 6e 65 6e 74 20 | this co|mponent |
|000009f0| 65 78 69 73 74 20 28 69 | 6e 20 77 6f 72 6c 64 20 |exist (i|n world |
|00000a00| 73 70 61 63 65 29 20 2d | 20 47 72 72 2e 2e 20 64 |space) -| Grr.. d|
|00000a10| 61 6d 6e 20 4c 65 66 74 | 28 29 0d 0a 76 61 72 28 |amn Left|()..var(|
|00000a20| 4d 65 6e 75 29 09 66 6c | 6f 61 74 09 09 09 09 57 |Menu).fl|oat....W|
|00000a30| 69 6e 57 69 64 74 68 2c | 57 69 6e 48 65 69 67 68 |inWidth,|WinHeigh|
|00000a40| 74 3b 09 09 09 2f 2f 20 | 57 68 65 72 65 20 64 6f |t;...// |Where do|
|00000a50| 65 73 20 74 68 69 73 20 | 63 6f 6d 70 6f 6e 65 6e |es this |componen|
|00000a60| 74 20 65 78 69 73 74 20 | 28 69 6e 20 77 6f 72 6c |t exist |(in worl|
|00000a70| 64 20 73 70 61 63 65 29 | 20 2d 20 47 72 72 2e 2e |d space)| - Grr..|
|00000a80| 20 64 61 6d 6e 20 4c 65 | 66 74 28 29 0d 0a 76 61 | damn Le|ft()..va|
|00000a90| 72 28 4d 65 6e 75 29 09 | 69 6e 74 09 09 09 09 09 |r(Menu).|int.....|
|00000aa0| 4d 6f 75 73 65 43 75 72 | 73 6f 72 49 6e 64 65 78 |MouseCur|sorIndex|
|00000ab0| 3b 09 09 09 2f 2f 20 54 | 68 65 20 6d 6f 75 73 65 |;...// T|he mouse|
|00000ac0| 20 63 75 72 73 6f 72 20 | 74 6f 20 75 73 65 20 77 | cursor |to use w|
|00000ad0| 68 65 6e 20 6f 76 65 72 | 20 74 68 69 73 20 63 6f |hen over| this co|
|00000ae0| 6e 74 72 6f 6c 0d 0a 76 | 61 72 28 4d 65 6e 75 29 |ntrol..v|ar(Menu)|
|00000af0| 09 62 6f 6f 6c 09 09 09 | 09 62 54 61 62 53 74 6f |.bool...|.bTabSto|
|00000b00| 70 3b 09 09 09 09 09 2f | 2f 20 44 6f 65 73 20 61 |p;...../|/ Does a|
|00000b10| 20 54 41 42 2f 53 68 69 | 66 74 2d 54 61 62 20 73 | TAB/Shi|ft-Tab s|
|00000b20| 74 6f 70 20 68 65 72 65 | 0d 0a 76 61 72 28 4d 65 |top here|..var(Me|
|00000b30| 6e 75 29 20 20 20 69 6e | 74 09 09 09 09 09 54 61 |nu) in|t.....Ta|
|00000b40| 62 4f 72 64 65 72 3b 09 | 09 09 09 09 2f 2f 20 55 |bOrder;.|....// U|
|00000b50| 73 65 64 20 74 6f 20 66 | 69 67 75 72 65 20 6f 75 |sed to f|igure ou|
|00000b60| 74 20 74 61 62 62 69 6e | 67 0d 0a 76 61 72 28 4d |t tabbin|g..var(M|
|00000b70| 65 6e 75 29 09 62 6f 6f | 6c 09 09 09 09 62 46 6f |enu).boo|l....bFo|
|00000b80| 63 75 73 4f 6e 57 61 74 | 63 68 3b 09 09 09 09 2f |cusOnWat|ch;..../|
|00000b90| 2f 20 49 66 20 74 72 75 | 65 2c 20 77 61 74 63 68 |/ If tru|e, watch|
|00000ba0| 69 6e 67 20 66 6f 63 75 | 73 65 73 0d 0a 76 61 72 |ing focu|ses..var|
|00000bb0| 28 4d 65 6e 75 29 09 66 | 6c 6f 61 74 09 09 09 09 |(Menu).f|loat....|
|00000bc0| 52 65 6e 64 65 72 57 65 | 69 67 68 74 3b 09 09 09 |RenderWe|ight;...|
|00000bd0| 09 2f 2f 20 55 73 65 64 | 20 74 6f 20 64 65 74 65 |.// Used| to dete|
|00000be0| 72 6d 69 6e 65 20 73 6f | 72 74 69 6e 67 20 69 6e |rmine so|rting in|
|00000bf0| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 73 20 73 74 | the con|trols st|
|00000c00| 61 63 6b 0d 0a 76 61 72 | 28 4d 65 6e 75 29 09 69 |ack..var|(Menu).i|
|00000c10| 6e 74 09 09 09 09 09 54 | 61 67 3b 09 09 09 09 09 |nt.....T|ag;.....|
|00000c20| 09 2f 2f 20 4e 6f 74 20 | 75 73 65 64 2e 0d 0a 76 |.// Not |used...v|
|00000c30| 61 72 28 4d 65 6e 75 29 | 09 47 55 49 4c 61 62 65 |ar(Menu)|.GUILabe|
|00000c40| 6c 09 09 09 46 72 69 65 | 6e 64 6c 79 4c 61 62 65 |l...Frie|ndlyLabe|
|00000c50| 6c 3b 09 09 09 09 2f 2f | 20 4d 79 20 73 74 61 74 |l;....//| My stat|
|00000c60| 65 20 69 73 20 70 72 6f | 6a 65 63 74 65 64 20 6f |e is pro|jected o|
|00000c70| 6e 20 74 68 69 73 20 6f | 62 6a 65 63 74 73 20 73 |n this o|bjects s|
|00000c80| 74 61 74 65 2e 0d 0a 76 | 61 72 28 4d 65 6e 75 29 |tate...v|ar(Menu)|
|00000c90| 09 62 6f 6f 6c 09 09 09 | 09 62 4d 6f 75 73 65 4f |.bool...|.bMouseO|
|00000ca0| 76 65 72 53 6f 75 6e 64 | 3b 09 09 09 2f 2f 20 53 |verSound|;...// S|
|00000cb0| 68 6f 75 6c 64 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |hould co|mponent |
|00000cc0| 62 6c 65 65 70 20 77 68 | 65 6e 20 6d 6f 75 73 65 |bleep wh|en mouse|
|00000cd0| 20 67 6f 65 73 20 6f 76 | 65 72 20 69 74 0d 0a 76 | goes ov|er it..v|
|00000ce0| 61 72 28 4d 65 6e 75 29 | 09 65 6e 75 6d 09 09 09 |ar(Menu)|.enum...|
|00000cf0| 09 45 43 6c 69 63 6b 53 | 6f 75 6e 64 0d 0a 7b 0d |.EClickS|ound..{.|
|00000d00| 0a 09 43 53 5f 4e 6f 6e | 65 2c 0d 0a 09 43 53 5f |..CS_Non|e,...CS_|
|00000d10| 43 6c 69 63 6b 2c 0d 0a | 09 43 53 5f 45 64 69 74 |Click,..|.CS_Edit|
|00000d20| 2c 0d 0a 09 43 53 5f 55 | 70 2c 0d 0a 09 43 53 5f |,...CS_U|p,...CS_|
|00000d30| 44 6f 77 6e 0d 0a 7d 20 | 4f 6e 43 6c 69 63 6b 53 |Down..} |OnClickS|
|00000d40| 6f 75 6e 64 3b 0d 0a 0d | 0a 2f 2f 20 53 74 79 6c |ound;...|.// Styl|
|00000d50| 65 20 68 6f 6c 64 73 20 | 61 20 70 6f 69 6e 74 65 |e holds |a pointe|
|00000d60| 72 20 74 6f 20 74 68 65 | 20 47 55 49 20 73 74 79 |r to the| GUI sty|
|00000d70| 6c 65 20 6f 66 20 74 68 | 69 73 20 63 6f 6d 70 6f |le of th|is compo|
|00000d80| 6e 65 6e 74 2e 0d 0a 0d | 0a 76 61 72 09 09 09 47 |nent....|.var...G|
|00000d90| 55 49 53 74 79 6c 65 73 | 09 09 20 53 74 79 6c 65 |UIStyles|.. Style|
|00000da0| 3b 09 09 09 09 09 09 2f | 2f 20 4d 79 20 47 55 49 |;....../|/ My GUI|
|00000db0| 20 53 74 79 6c 65 0d 0a | 0d 0a 2f 2f 20 4e 6f 74 | Style..|..// Not|
|00000dc0| 65 73 20 61 62 6f 75 74 | 20 74 68 65 20 54 6f 70 |es about| the Top|
|00000dd0| 2f 4c 65 66 74 2f 57 69 | 64 74 68 2f 48 65 69 67 |/Left/Wi|dth/Heig|
|00000de0| 68 74 20 3a 20 54 68 69 | 73 20 69 73 20 61 20 73 |ht : Thi|s is a s|
|00000df0| 6f 6d 65 77 68 61 74 20 | 68 61 63 6b 20 62 75 74 |omewhat |hack but|
|00000e00| 20 69 74 27 73 20 72 65 | 61 6c 6c 79 20 67 6f 6f | it's re|ally goo|
|00000e10| 64 20 66 6f 72 20 66 75 | 6e 63 74 69 6f 6e 61 6c |d for fu|nctional|
|00000e20| 69 74 79 2e 20 20 49 66 | 0d 0a 2f 2f 20 74 68 65 |ity. If|..// the|
|00000e30| 20 76 61 6c 75 65 20 69 | 73 20 3c 3d 31 2c 20 74 | value i|s <=1, t|
|00000e40| 68 65 6e 20 74 68 65 20 | 63 6f 6e 74 72 6f 6c 20 |hen the |control |
|00000e50| 69 73 20 63 6f 6e 73 69 | 64 65 72 65 64 20 74 6f |is consi|dered to|
|00000e60| 20 62 65 20 73 63 61 6c | 65 64 2e 20 20 49 66 20 | be scal|ed. If |
|00000e70| 74 68 65 79 20 61 72 65 | 20 3e 31 20 74 68 65 79 |they are| >1 they|
|00000e80| 20 61 72 65 20 63 6f 6e | 73 69 64 65 72 65 64 20 | are con|sidered |
|00000e90| 74 6f 20 62 65 20 6e 6f | 72 6d 61 6c 20 77 6f 72 |to be no|rmal wor|
|00000ea0| 6c 64 20 63 6f 6f 72 64 | 73 2e 0d 0a 2f 2f 20 30 |ld coord|s...// 0|
|00000eb0| 20 3d 20 30 2c 20 31 20 | 3d 20 31 30 30 25 0d 0a | = 0, 1 |= 100%..|
|00000ec0| 0d 0a 76 61 72 09 09 09 | 66 6c 6f 61 74 09 09 42 |..var...|float..B|
|00000ed0| 6f 75 6e 64 73 5b 34 5d | 3b 09 09 09 09 09 09 09 |ounds[4]|;.......|
|00000ee0| 09 2f 2f 20 49 6e 74 65 | 72 6e 61 6c 20 6e 6f 72 |.// Inte|rnal nor|
|00000ef0| 6d 61 6c 69 7a 65 64 20 | 70 6f 73 69 74 69 6f 6e |malized |position|
|00000f00| 73 20 69 6e 20 77 6f 72 | 6c 64 20 73 70 61 63 65 |s in wor|ld space|
|00000f10| 0d 0a 76 61 72 09 09 09 | 66 6c 6f 61 74 09 09 43 |..var...|float..C|
|00000f20| 6c 69 65 6e 74 42 6f 75 | 6e 64 73 5b 34 5d 3b 09 |lientBou|nds[4];.|
|00000f30| 09 09 09 09 09 2f 2f 20 | 54 68 65 20 62 6f 75 6e |.....// |The boun|
|00000f40| 64 73 20 6f 66 20 74 68 | 65 20 61 63 74 75 61 6c |ds of th|e actual|
|00000f50| 20 63 6c 69 65 6e 74 20 | 61 72 65 61 20 28 6d 69 | client |area (mi|
|00000f60| 6e 75 73 20 61 6e 79 20 | 62 6f 72 64 65 72 73 29 |nus any |borders)|
|00000f70| 0d 0a 0d 0a 76 61 72 09 | 09 09 62 6f 6f 6c 09 09 |....var.|..bool..|
|00000f80| 62 50 65 6e 64 69 6e 67 | 46 6f 63 75 73 3b 09 09 |bPending|Focus;..|
|00000f90| 09 09 09 09 09 2f 2f 20 | 42 69 67 20 62 69 67 20 |.....// |Big big |
|00000fa0| 68 61 63 6b 20 66 6f 72 | 20 43 6f 6d 62 6f 42 6f |hack for| ComboBo|
|00000fb0| 78 65 73 2e 2e 0d 0a 0d | 0a 2f 2f 20 54 69 6d 65 |xes.....|.// Time|
|00000fc0| 72 20 53 75 70 70 6f 72 | 74 0d 0a 76 61 72 20 63 |r Suppor|t..var c|
|00000fd0| 6f 6e 73 74 09 69 6e 74 | 09 09 09 54 69 6d 65 72 |onst.int|...Timer|
|00000fe0| 49 6e 64 65 78 3b 09 09 | 09 2f 2f 20 46 6f 72 20 |Index;..|.// For |
|00000ff0| 65 61 73 69 65 72 20 6d | 61 69 6e 74 65 6e 61 6e |easier m|aintenan|
|00001000| 63 65 0d 0a 76 61 72 09 | 09 09 62 6f 6f 6c 09 09 |ce..var.|..bool..|
|00001010| 62 54 69 6d 65 72 52 65 | 70 65 61 74 3b 0d 0a 76 |bTimerRe|peat;..v|
|00001020| 61 72 09 09 09 66 6c 6f | 61 74 09 09 54 69 6d 65 |ar...flo|at..Time|
|00001030| 72 43 6f 75 6e 74 64 6f | 77 6e 3b 0d 0a 76 61 72 |rCountdo|wn;..var|
|00001040| 09 09 09 66 6c 6f 61 74 | 09 09 54 69 6d 65 72 49 |...float|..TimerI|
|00001050| 6e 74 65 72 76 61 6c 3b | 0d 0a 0d 0a 2f 2f 20 55 |nterval;|....// U|
|00001060| 73 65 64 20 66 6f 72 20 | 53 61 76 69 6e 67 20 74 |sed for |Saving t|
|00001070| 68 65 20 6c 61 73 74 20 | 73 74 61 74 65 20 62 65 |he last |state be|
|00001080| 66 6f 72 65 20 64 72 61 | 77 69 6e 67 20 6e 61 74 |fore dra|wing nat|
|00001090| 69 76 65 6c 79 0d 0a 0d | 0a 76 61 72 09 09 66 6c |ively...|.var..fl|
|000010a0| 6f 61 74 20 09 53 61 76 | 65 58 2c 53 61 76 65 59 |oat .Sav|eX,SaveY|
|000010b0| 3b 0d 0a 76 61 72 20 09 | 63 6f 6c 6f 72 09 53 61 |;..var .|color.Sa|
|000010c0| 76 65 43 6f 6c 6f 72 3b | 0d 0a 76 61 72 09 09 66 |veColor;|..var..f|
|000010d0| 6f 6e 74 09 53 61 76 65 | 46 6f 6e 74 3b 0d 0a 76 |ont.Save|Font;..v|
|000010e0| 61 72 09 09 62 79 74 65 | 09 53 61 76 65 53 74 79 |ar..byte|.SaveSty|
|000010f0| 6c 65 3b 0d 0a 0d 0a 2f | 2f 20 49 66 20 79 6f 75 |le;..../|/ If you|
|00001100| 20 77 61 6e 74 20 74 6f | 20 6f 76 65 72 72 69 64 | want to| overrid|
|00001110| 65 20 61 20 6c 69 6e 6b | 20 74 6f 20 66 6f 72 63 |e a link| to forc|
|00001120| 65 20 74 68 69 73 20 63 | 6f 6d 70 6f 6e 65 6e 74 |e this c|omponent|
|00001130| 20 74 6f 20 70 6f 69 6e | 74 20 74 6f 20 61 20 67 | to poin|t to a g|
|00001140| 69 76 65 6e 0d 0a 2f 2f | 20 63 6f 6d 70 6f 6e 65 |iven..//| compone|
|00001150| 6e 74 20 6f 6e 20 79 6f | 75 72 20 70 61 67 65 2c |nt on yo|ur page,|
|00001160| 20 73 65 74 20 69 74 20 | 68 65 72 65 2e 0d 0a 0d | set it |here....|
|00001170| 0a 2f 2f 20 30 20 3d 20 | 55 70 0d 0a 2f 2f 20 31 |.// 0 = |Up..// 1|
|00001180| 20 3d 20 44 6f 77 6e 0d | 0a 2f 2f 20 32 20 3d 20 | = Down.|.// 2 = |
|00001190| 4c 65 66 74 0d 0a 2f 2f | 20 33 20 3d 20 52 69 67 |Left..//| 3 = Rig|
|000011a0| 68 74 0d 0a 76 61 72 20 | 47 55 49 43 6f 6d 70 6f |ht..var |GUICompo|
|000011b0| 6e 65 6e 74 20 4c 69 6e | 6b 4f 76 65 72 72 69 64 |nent Lin|kOverrid|
|000011c0| 65 73 5b 34 5d 3b 0d 0a | 76 61 72 20 47 55 49 43 |es[4];..|var GUIC|
|000011d0| 6f 6d 70 6f 6e 65 6e 74 | 20 4c 69 6e 6b 73 5b 34 |omponent| Links[4|
|000011e0| 5d 3b 0d 0a 0d 0a 2f 2f | 20 44 65 6c 65 67 61 74 |];....//| Delegat|
|000011f0| 65 73 0d 0a 0d 0a 2f 2f | 20 44 72 61 77 69 6e 67 |es....//| Drawing|
|00001200| 20 64 65 6c 65 67 61 74 | 65 73 20 72 65 74 75 72 | delegat|es retur|
|00001210| 6e 20 74 72 75 65 20 69 | 66 20 79 6f 75 20 77 61 |n true i|f you wa|
|00001220| 6e 74 20 74 6f 20 73 68 | 6f 72 74 2d 63 69 72 63 |nt to sh|ort-circ|
|00001230| 75 69 74 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 |uit the |default |
|00001240| 64 72 61 77 69 6e 67 20 | 63 6f 64 65 0d 0a 0d 0a |drawing |code....|
|00001250| 44 65 6c 65 67 61 74 65 | 20 62 6f 6f 6c 20 4f 6e |Delegate| bool On|
|00001260| 50 72 65 44 72 61 77 28 | 43 61 6e 76 61 73 20 43 |PreDraw(|Canvas C|
|00001270| 61 6e 76 61 73 29 3b 0d | 0a 44 65 6c 65 67 61 74 |anvas);.|.Delegat|
|00001280| 65 20 62 6f 6f 6c 20 4f | 6e 44 72 61 77 28 43 61 |e bool O|nDraw(Ca|
|00001290| 6e 76 61 73 20 43 61 6e | 76 61 73 29 3b 0d 0a 0d |nvas Can|vas);...|
|000012a0| 0a 44 65 6c 65 67 61 74 | 65 20 4f 6e 41 63 74 69 |.Delegat|e OnActi|
|000012b0| 76 61 74 65 28 29 3b 09 | 09 09 09 09 09 09 09 09 |vate();.|........|
|000012c0| 09 09 09 09 2f 2f 20 43 | 61 6c 6c 65 64 20 77 68 |....// C|alled wh|
|000012d0| 65 6e 20 74 68 65 20 63 | 6f 6d 70 6f 6e 65 6e 74 |en the c|omponent|
|000012e0| 20 67 61 69 6e 73 20 66 | 6f 63 75 73 0d 0a 44 65 | gains f|ocus..De|
|000012f0| 6c 65 67 61 74 65 20 4f | 6e 44 65 41 63 74 69 76 |legate O|nDeActiv|
|00001300| 61 74 65 28 29 3b 09 09 | 09 09 09 09 09 09 09 09 |ate();..|........|
|00001310| 09 09 2f 2f 20 43 61 6c | 6c 65 64 20 77 68 65 6e |..// Cal|led when|
|00001320| 20 74 68 65 20 63 6f 6d | 70 6f 6e 65 6e 74 20 6c | the com|ponent l|
|00001330| 6f 73 65 73 20 66 6f 63 | 75 73 0d 0a 44 65 6c 65 |oses foc|us..Dele|
|00001340| 67 61 74 65 20 4f 6e 57 | 61 74 63 68 28 29 3b 09 |gate OnW|atch();.|
|00001350| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 2f 2f 20 |........|.....// |
|00001360| 43 61 6c 6c 65 64 20 77 | 68 65 6e 20 74 68 65 20 |Called w|hen the |
|00001370| 63 6f 6d 70 6f 6e 65 6e | 74 20 69 73 20 62 65 69 |componen|t is bei|
|00001380| 6e 67 20 77 61 74 63 68 | 65 64 0d 0a 44 65 6c 65 |ng watch|ed..Dele|
|00001390| 67 61 74 65 20 4f 6e 48 | 69 74 54 65 73 74 28 66 |gate OnH|itTest(f|
|000013a0| 6c 6f 61 74 20 4d 6f 75 | 73 65 58 2c 20 66 6c 6f |loat Mou|seX, flo|
|000013b0| 61 74 20 4d 6f 75 73 65 | 59 29 3b 09 09 09 09 09 |at Mouse|Y);.....|
|000013c0| 09 09 2f 2f 20 43 61 6c | 6c 65 64 20 77 68 65 6e |..// Cal|led when|
|000013d0| 20 48 69 74 20 74 65 73 | 74 20 69 73 20 70 65 72 | Hit tes|t is per|
|000013e0| 66 6f 72 6d 65 64 20 66 | 6f 72 20 6d 6f 75 73 65 |formed f|or mouse|
|000013f0| 20 69 6e 70 75 74 0d 0a | 44 65 6c 65 67 61 74 65 | input..|Delegate|
|00001400| 20 4f 6e 52 65 6e 64 65 | 72 28 63 61 6e 76 61 73 | OnRende|r(canvas|
|00001410| 20 43 61 6e 76 61 73 29 | 3b 09 09 09 09 09 09 09 | Canvas)|;.......|
|00001420| 09 09 09 2f 2f 20 43 61 | 6c 6c 65 64 20 77 68 65 |...// Ca|lled whe|
|00001430| 6e 20 74 68 65 20 63 6f | 6d 70 6f 6e 65 6e 74 20 |n the co|mponent |
|00001440| 69 73 20 72 65 6e 64 65 | 72 65 64 0d 0a 44 65 6c |is rende|red..Del|
|00001450| 65 67 61 74 65 20 4f 6e | 4d 65 73 73 61 67 65 28 |egate On|Message(|
|00001460| 63 6f 65 72 63 65 20 73 | 74 72 69 6e 67 20 4d 73 |coerce s|tring Ms|
|00001470| 67 2c 20 66 6c 6f 61 74 | 20 4d 73 67 4c 69 66 65 |g, float| MsgLife|
|00001480| 29 3b 20 09 09 09 09 09 | 2f 2f 20 57 68 65 6e 20 |); .....|// When |
|00001490| 61 20 6d 65 73 73 61 67 | 65 20 63 6f 6d 65 73 20 |a messag|e comes |
|000014a0| 64 6f 77 6e 20 74 68 65 | 20 6c 69 6e 65 0d 0a 0d |down the| line...|
|000014b0| 0a 44 65 6c 65 67 61 74 | 65 20 4f 6e 48 69 64 65 |.Delegat|e OnHide|
|000014c0| 28 29 3b 0d 0a 44 65 6c | 65 67 61 74 65 20 4f 6e |();..Del|egate On|
|000014d0| 53 68 6f 77 28 29 3b 0d | 0a 0d 0a 44 65 6c 65 67 |Show();.|...Deleg|
|000014e0| 61 74 65 20 4f 6e 49 6e | 76 61 6c 69 64 61 74 65 |ate OnIn|validate|
|000014f0| 28 47 55 49 43 6f 6d 70 | 6f 6e 65 6e 74 20 57 68 |(GUIComp|onent Wh|
|00001500| 6f 29 3b 09 2f 2f 20 43 | 61 6c 6c 65 64 20 77 68 |o);.// C|alled wh|
|00001510| 65 6e 20 74 68 65 20 62 | 61 63 6b 67 72 6f 75 6e |en the b|ackgroun|
|00001520| 64 20 69 73 20 63 6c 69 | 63 6b 65 64 0d 0a 0d 0a |d is cli|cked....|
|00001530| 2f 2f 20 2d 2d 20 49 6e | 70 75 74 20 65 76 65 6e |// -- In|put even|
|00001540| 74 20 64 65 6c 65 67 61 | 74 65 73 0d 0a 0d 0a 44 |t delega|tes....D|
|00001550| 65 6c 65 67 61 74 65 20 | 62 6f 6f 6c 20 4f 6e 43 |elegate |bool OnC|
|00001560| 6c 69 63 6b 28 47 55 49 | 43 6f 6d 70 6f 6e 65 6e |lick(GUI|Componen|
|00001570| 74 20 53 65 6e 64 65 72 | 29 3b 09 09 09 2f 2f 20 |t Sender|);...// |
|00001580| 54 68 65 20 6d 6f 75 73 | 65 20 77 61 73 20 63 6c |The mous|e was cl|
|00001590| 69 63 6b 65 64 20 6f 6e | 20 74 68 69 73 20 63 6f |icked on| this co|
|000015a0| 6e 74 72 6f 6c 0d 0a 44 | 65 6c 65 67 61 74 65 20 |ntrol..D|elegate |
|000015b0| 62 6f 6f 6c 20 4f 6e 44 | 62 6c 43 6c 69 63 6b 28 |bool OnD|blClick(|
|000015c0| 47 55 49 43 6f 6d 70 6f | 6e 65 6e 74 20 53 65 6e |GUICompo|nent Sen|
|000015d0| 64 65 72 29 3b 09 09 2f | 2f 20 54 68 65 20 6d 6f |der);../|/ The mo|
|000015e0| 75 73 65 20 77 61 73 20 | 64 6f 75 62 6c 65 2d 63 |use was |double-c|
|000015f0| 6c 69 63 6b 65 64 20 6f | 6e 20 74 68 69 73 20 63 |licked o|n this c|
|00001600| 6f 6e 74 72 6f 6c 0d 0a | 44 65 6c 65 67 61 74 65 |ontrol..|Delegate|
|00001610| 20 62 6f 6f 6c 20 4f 6e | 52 69 67 68 74 43 6c 69 | bool On|RightCli|
|00001620| 63 6b 28 47 55 49 43 6f | 6d 70 6f 6e 65 6e 74 20 |ck(GUICo|mponent |
|00001630| 53 65 6e 64 65 72 29 3b | 09 2f 2f 20 43 6f 6e 74 |Sender);|.// Cont|
|00001640| 72 6f 6c 20 77 61 73 20 | 72 69 67 68 74 20 63 6c |rol was |right cl|
|00001650| 69 63 6b 65 64 2e 0d 0a | 0d 0a 44 65 6c 65 67 61 |icked...|..Delega|
|00001660| 74 65 20 4f 6e 4d 6f 75 | 73 65 50 72 65 73 73 65 |te OnMou|sePresse|
|00001670| 64 28 47 55 49 43 6f 6d | 70 6f 6e 65 6e 74 20 53 |d(GUICom|ponent S|
|00001680| 65 6e 64 65 72 2c 20 62 | 6f 6f 6c 20 62 52 65 70 |ender, b|ool bRep|
|00001690| 65 61 74 29 3b 09 09 2f | 2f 20 53 65 6e 74 20 77 |eat);../|/ Sent w|
|000016a0| 68 65 6e 20 61 20 6d 6f | 75 73 65 20 69 73 20 70 |hen a mo|use is p|
|000016b0| 72 65 73 73 65 64 20 28 | 69 6e 69 74 69 61 6c 6c |ressed (|initiall|
|000016c0| 79 29 0d 0a 44 65 6c 65 | 67 61 74 65 20 4f 6e 4d |y)..Dele|gate OnM|
|000016d0| 6f 75 73 65 52 65 6c 65 | 61 73 65 28 47 55 49 43 |ouseRele|ase(GUIC|
|000016e0| 6f 6d 70 6f 6e 65 6e 74 | 20 53 65 6e 64 65 72 29 |omponent| Sender)|
|000016f0| 3b 09 09 2f 2f 20 53 65 | 6e 74 20 77 68 65 6e 20 |;..// Se|nt when |
|00001700| 74 68 65 20 6d 6f 75 73 | 65 20 69 73 20 72 65 6c |the mous|e is rel|
|00001710| 65 61 73 65 64 2e 0d 0a | 0d 0a 44 65 6c 65 67 61 |eased...|..Delega|
|00001720| 74 65 20 4f 6e 43 68 61 | 6e 67 65 28 47 55 49 43 |te OnCha|nge(GUIC|
|00001730| 6f 6d 70 6f 6e 65 6e 74 | 20 53 65 6e 64 65 72 29 |omponent| Sender)|
|00001740| 3b 09 2f 2f 20 43 61 6c | 6c 65 64 20 77 68 65 6e |;.// Cal|led when|
|00001750| 20 61 20 63 6f 6d 70 6f | 6e 65 6e 74 20 63 68 61 | a compo|nent cha|
|00001760| 6e 67 65 73 20 69 74 27 | 73 20 76 61 6c 75 65 0d |nges it'|s value.|
|00001770| 0a 0d 0a 44 65 6c 65 67 | 61 74 65 20 62 6f 6f 6c |...Deleg|ate bool|
|00001780| 20 4f 6e 4b 65 79 54 79 | 70 65 28 6f 75 74 20 62 | OnKeyTy|pe(out b|
|00001790| 79 74 65 20 4b 65 79 2c | 20 6f 70 74 69 6f 6e 61 |yte Key,| optiona|
|000017a0| 6c 20 73 74 72 69 6e 67 | 20 55 6e 69 63 6f 64 65 |l string| Unicode|
|000017b0| 29 20 20 09 2f 2f 20 4b | 65 79 20 53 74 72 6f 6b |) .// K|ey Strok|
|000017c0| 65 73 0d 0a 7b 0d 0a 09 | 72 65 74 75 72 6e 20 66 |es..{...|return f|
|000017d0| 61 6c 73 65 3b 0d 0a 7d | 0d 0a 0d 0a 44 65 6c 65 |alse;..}|....Dele|
|000017e0| 67 61 74 65 20 62 6f 6f | 6c 20 4f 6e 4b 65 79 45 |gate boo|l OnKeyE|
|000017f0| 76 65 6e 74 28 6f 75 74 | 20 62 79 74 65 20 4b 65 |vent(out| byte Ke|
|00001800| 79 2c 20 6f 75 74 20 62 | 79 74 65 20 53 74 61 74 |y, out b|yte Stat|
|00001810| 65 2c 20 66 6c 6f 61 74 | 20 64 65 6c 74 61 29 0d |e, float| delta).|
|00001820| 0a 7b 0d 0a 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |.{...ret|urn fals|
|00001830| 65 3b 0d 0a 7d 0d 0a 0d | 0a 44 65 6c 65 67 61 74 |e;..}...|.Delegat|
|00001840| 65 20 62 6f 6f 6c 20 4f | 6e 43 61 70 74 75 72 65 |e bool O|nCapture|
|00001850| 64 4d 6f 75 73 65 4d 6f | 76 65 28 66 6c 6f 61 74 |dMouseMo|ve(float|
|00001860| 20 64 65 6c 74 61 58 2c | 20 66 6c 6f 61 74 20 64 | deltaX,| float d|
|00001870| 65 6c 74 61 59 29 0d 0a | 7b 0d 0a 09 72 65 74 75 |eltaY)..|{...retu|
|00001880| 72 6e 20 66 61 6c 73 65 | 3b 0d 0a 7d 0d 0a 0d 0a |rn false|;..}....|
|00001890| 2f 2f 20 41 6c 6c 6f 77 | 73 20 61 20 63 6f 6e 74 |// Allow|s a cont|
|000018a0| 72 6f 6c 20 74 6f 20 70 | 72 6f 63 65 73 73 20 72 |rol to p|rocess r|
|000018b0| 61 77 20 43 6f 6e 73 6f | 6c 65 20 63 6f 6e 74 72 |aw Conso|le contr|
|000018c0| 6f 6c 6c 65 72 20 65 76 | 65 6e 74 73 0d 0a 0d 0a |oller ev|ents....|
|000018d0| 44 65 6c 65 67 61 74 65 | 20 62 6f 6f 6c 20 4f 6e |Delegate| bool On|
|000018e0| 52 61 77 58 43 6f 6e 74 | 72 6f 6c 6c 65 72 28 62 |RawXCont|roller(b|
|000018f0| 79 74 65 20 49 64 2c 20 | 6f 75 74 20 62 79 74 65 |yte Id, |out byte|
|00001900| 20 4b 65 79 2c 20 6f 75 | 74 20 62 79 74 65 20 53 | Key, ou|t byte S|
|00001910| 74 61 74 65 2c 20 6f 75 | 74 20 66 6c 6f 61 74 20 |tate, ou|t float |
|00001920| 41 78 69 73 29 0d 0a 7b | 0d 0a 09 72 65 74 75 72 |Axis)..{|...retur|
|00001930| 6e 20 66 61 6c 73 65 3b | 0d 0a 7d 0d 0a 0d 0a 44 |n false;|..}....D|
|00001940| 65 6c 65 67 61 74 65 20 | 62 6f 6f 6c 20 4f 6e 58 |elegate |bool OnX|
|00001950| 43 6f 6e 74 72 6f 6c 6c | 65 72 45 76 65 6e 74 28 |Controll|erEvent(|
|00001960| 62 79 74 65 20 49 64 2c | 20 65 58 43 6f 6e 74 72 |byte Id,| eXContr|
|00001970| 6f 6c 6c 65 72 43 6f 64 | 65 73 20 69 43 6f 64 65 |ollerCod|es iCode|
|00001980| 29 3b 20 2f 2f 20 58 42 | 6f 78 20 43 6f 6e 74 72 |); // XB|ox Contr|
|00001990| 6f 6c 6c 65 72 20 45 76 | 65 6e 74 73 0d 0a 0d 0a |oller Ev|ents....|
|000019a0| 0d 0a 44 65 6c 65 67 61 | 74 65 20 4f 6e 4c 6f 61 |..Delega|te OnLoa|
|000019b0| 64 49 4e 49 28 47 55 49 | 43 6f 6d 70 6f 6e 65 6e |dINI(GUI|Componen|
|000019c0| 74 20 53 65 6e 64 65 72 | 2c 20 73 74 72 69 6e 67 |t Sender|, string|
|000019d0| 20 73 29 3b 09 09 2f 2f | 20 44 6f 20 74 68 65 20 | s);..//| Do the |
|000019e0| 61 63 74 75 61 6c 20 77 | 6f 72 6b 20 68 65 72 65 |actual w|ork here|
|000019f0| 0d 0a 44 65 6c 65 67 61 | 74 65 20 73 74 72 69 6e |..Delega|te strin|
|00001a00| 67 20 4f 6e 53 61 76 65 | 49 4e 49 28 47 55 49 43 |g OnSave|INI(GUIC|
|00001a10| 6f 6d 70 6f 6e 65 6e 74 | 20 53 65 6e 64 65 72 29 |omponent| Sender)|
|00001a20| 3b 20 09 09 2f 2f 20 44 | 6f 20 74 68 65 20 61 63 |; ..// D|o the ac|
|00001a30| 74 75 61 6c 20 77 6f 72 | 6b 20 68 65 72 65 0d 0a |tual wor|k here..|
|00001a40| 0d 0a 65 76 65 6e 74 20 | 4f 70 65 6e 65 64 28 47 |..event |Opened(G|
|00001a50| 55 49 43 6f 6d 70 6f 6e | 65 6e 74 20 53 65 6e 64 |UICompon|ent Send|
|00001a60| 65 72 29 3b 09 2f 2f 20 | 43 61 6c 6c 65 64 20 77 |er);.// |Called w|
|00001a70| 68 65 6e 20 74 68 65 20 | 4d 65 6e 75 20 4f 77 6e |hen the |Menu Own|
|00001a80| 65 72 20 69 73 20 6f 70 | 65 6e 65 64 0d 0a 65 76 |er is op|ened..ev|
|00001a90| 65 6e 74 20 43 6c 6f 73 | 65 64 28 47 55 49 43 6f |ent Clos|ed(GUICo|
|00001aa0| 6d 70 6f 6e 65 6e 74 20 | 53 65 6e 64 65 72 2c 20 |mponent |Sender, |
|00001ab0| 62 6f 6f 6c 20 62 43 61 | 6e 63 65 6c 6c 65 64 29 |bool bCa|ncelled)|
|00001ac0| 3b 09 2f 2f 20 43 61 6c | 6c 65 64 20 77 68 65 6e |;.// Cal|led when|
|00001ad0| 20 74 68 65 20 4d 65 6e | 75 20 4f 77 6e 65 72 20 | the Men|u Owner |
|00001ae0| 69 73 20 63 6c 6f 73 65 | 64 0d 0a 0d 0a 65 76 65 |is close|d....eve|
|00001af0| 6e 74 20 46 72 65 65 28 | 29 20 09 09 09 2f 2f 20 |nt Free(|) ...// |
|00001b00| 54 68 69 73 20 63 6f 6e | 74 72 6f 6c 20 69 73 20 |This con|trol is |
|00001b10| 6e 6f 20 6c 6f 6e 67 65 | 72 20 6e 65 65 64 65 64 |no longe|r needed|
|00001b20| 0d 0a 7b 0d 0a 09 4d 65 | 6e 75 4f 77 6e 65 72 20 |..{...Me|nuOwner |
|00001b30| 09 09 3d 20 4e 6f 6e 65 | 3b 0d 0a 20 20 20 20 43 |..= None|;.. C|
|00001b40| 6f 6e 74 72 6f 6c 6c 65 | 72 09 20 09 3d 20 4e 6f |ontrolle|r. .= No|
|00001b50| 6e 65 3b 0d 0a 20 20 20 | 20 46 6f 63 75 73 49 6e |ne;.. | FocusIn|
|00001b60| 73 74 65 61 64 20 09 3d | 20 4e 6f 6e 65 3b 0d 0a |stead .=| None;..|
|00001b70| 20 20 20 20 46 72 69 65 | 6e 64 6c 79 4c 61 62 65 | Frie|ndlyLabe|
|00001b80| 6c 20 09 3d 20 4e 6f 6e | 65 3b 0d 0a 20 20 20 20 |l .= Non|e;.. |
|00001b90| 53 74 79 6c 65 09 09 09 | 3d 20 4e 6f 6e 65 3b 0d |Style...|= None;.|
|00001ba0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 50 |.}....fu|nction P|
|00001bb0| 6c 61 79 65 72 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |layerCon|troller |
|00001bc0| 50 6c 61 79 65 72 4f 77 | 6e 65 72 28 29 0d 0a 7b |PlayerOw|ner()..{|
|00001bd0| 0d 0a 09 72 65 74 75 72 | 6e 20 43 6f 6e 74 72 6f |...retur|n Contro|
|00001be0| 6c 6c 65 72 2e 56 69 65 | 77 70 6f 72 74 4f 77 6e |ller.Vie|wportOwn|
|00001bf0| 65 72 2e 41 63 74 6f 72 | 3b 0d 0a 7d 0d 0a 0d 0a |er.Actor|;..}....|
|00001c00| 0d 0a 65 76 65 6e 74 20 | 54 69 6d 65 72 28 29 3b |..event |Timer();|
|00001c10| 09 09 2f 2f 20 53 68 6f | 75 6c 64 20 62 65 20 73 |..// Sho|uld be s|
|00001c20| 75 62 63 6c 61 73 73 65 | 64 0d 0a 0d 0a 66 75 6e |ubclasse|d....fun|
|00001c30| 63 74 69 6f 6e 20 6e 61 | 74 69 76 65 20 66 69 6e |ction na|tive fin|
|00001c40| 61 6c 20 53 65 74 54 69 | 6d 65 72 28 66 6c 6f 61 |al SetTi|mer(floa|
|00001c50| 74 20 49 6e 74 65 72 76 | 61 6c 2c 20 6f 70 74 69 |t Interv|al, opti|
|00001c60| 6f 6e 61 6c 20 62 6f 6f | 6c 20 62 52 65 70 65 61 |onal boo|l bRepea|
|00001c70| 74 29 3b 0d 0a 66 75 6e | 63 74 69 6f 6e 20 6e 61 |t);..fun|ction na|
|00001c80| 74 69 76 65 20 66 69 6e | 61 6c 20 4b 69 6c 6c 54 |tive fin|al KillT|
|00001c90| 69 6d 65 72 28 29 3b 0d | 0a 0d 0a 66 75 6e 63 74 |imer();.|...funct|
|00001ca0| 69 6f 6e 20 73 74 72 69 | 6e 67 20 4c 6f 61 64 49 |ion stri|ng LoadI|
|00001cb0| 4e 49 28 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |NI()..{.|..local |
|00001cc0| 73 74 72 69 6e 67 20 73 | 3b 0d 0a 0d 0a 09 69 66 |string s|;.....if|
|00001cd0| 20 28 20 28 50 6c 61 79 | 65 72 4f 77 6e 65 72 28 | ( (Play|erOwner(|
|00001ce0| 29 3d 3d 4e 6f 6e 65 29 | 20 7c 7c 20 28 49 4e 49 |)==None)| || (INI|
|00001cf0| 4f 70 74 69 6f 6e 3d 3d | 22 22 29 20 29 0d 0a 09 |Option==|"") )...|
|00001d00| 09 72 65 74 75 72 6e 20 | 22 22 3b 0d 0a 0d 0a 09 |.return |"";.....|
|00001d10| 69 66 28 21 28 49 4e 49 | 4f 70 74 69 6f 6e 7e 3d |if(!(INI|Option~=|
|00001d20| 22 40 49 4e 54 45 52 4e | 41 4c 22 29 29 0d 0a 09 |"@INTERN|AL"))...|
|00001d30| 09 73 20 3d 20 50 6c 61 | 79 65 72 4f 77 6e 65 72 |.s = Pla|yerOwner|
|00001d40| 28 29 2e 43 6f 6e 73 6f | 6c 65 43 6f 6d 6d 61 6e |().Conso|leComman|
|00001d50| 64 28 22 67 65 74 22 40 | 49 6e 69 4f 70 74 69 6f |d("get"@|IniOptio|
|00001d60| 6e 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 73 3d 3d 22 |n);.....|if (s=="|
|00001d70| 22 29 0d 0a 09 09 73 20 | 3d 20 49 6e 69 44 65 66 |")....s |= IniDef|
|00001d80| 61 75 6c 74 3b 0d 0a 0d | 0a 09 4f 6e 4c 6f 61 64 |ault;...|..OnLoad|
|00001d90| 49 4e 49 28 53 65 6c 66 | 2c 73 29 3b 0d 0a 0d 0a |INI(Self|,s);....|
|00001da0| 09 72 65 74 75 72 6e 20 | 73 3b 0d 0a 7d 0d 0a 0d |.return |s;..}...|
|00001db0| 0a 66 75 6e 63 74 69 6f | 6e 20 53 61 76 65 49 4e |.functio|n SaveIN|
|00001dc0| 49 28 73 74 72 69 6e 67 | 20 56 61 6c 75 65 29 0d |I(string| Value).|
|00001dd0| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 73 74 72 69 6e |.{...loc|al strin|
|00001de0| 67 20 73 3b 0d 0a 0d 0a | 09 69 66 20 28 49 4e 49 |g s;....|.if (INI|
|00001df0| 4f 70 74 69 6f 6e 3d 3d | 22 22 29 0d 0a 09 09 72 |Option==|"")....r|
|00001e00| 65 74 75 72 6e 3b 0d 0a | 0d 0a 09 69 66 20 28 50 |eturn;..|...if (P|
|00001e10| 6c 61 79 65 72 4f 77 6e | 65 72 28 29 3d 3d 4e 6f |layerOwn|er()==No|
|00001e20| 6e 65 29 0d 0a 09 09 72 | 65 74 75 72 6e 3b 0d 0a |ne)....r|eturn;..|
|00001e30| 0d 0a 09 73 20 3d 20 4f | 6e 53 61 76 65 49 4e 49 |...s = O|nSaveINI|
|00001e40| 28 53 65 6c 66 29 3b 0d | 0a 09 69 66 20 28 20 73 |(Self);.|..if ( s|
|00001e50| 21 3d 22 22 20 29 0d 0a | 09 7b 0d 0a 09 7d 0d 0a |!="" )..|.{...}..|
|00001e60| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 73 74 |}....fun|ction st|
|00001e70| 72 69 6e 67 20 50 61 72 | 73 65 4f 70 74 69 6f 6e |ring Par|seOption|
|00001e80| 28 73 74 72 69 6e 67 20 | 55 52 4c 2c 20 73 74 72 |(string |URL, str|
|00001e90| 69 6e 67 20 4b 65 79 2c | 20 73 74 72 69 6e 67 20 |ing Key,| string |
|00001ea0| 44 65 66 61 75 6c 74 56 | 61 6c 29 0d 0a 7b 0d 0a |DefaultV|al)..{..|
|00001eb0| 09 6c 6f 63 61 6c 20 73 | 74 72 69 6e 67 20 73 3b |.local s|tring s;|
|00001ec0| 0d 0a 0d 0a 09 69 66 20 | 28 50 6c 61 79 65 72 4f |.....if |(PlayerO|
|00001ed0| 77 6e 65 72 28 29 3d 3d | 4e 6f 6e 65 29 0d 0a 09 |wner()==|None)...|
|00001ee0| 09 72 65 74 75 72 6e 20 | 44 65 66 61 75 6c 74 56 |.return |DefaultV|
|00001ef0| 61 6c 3b 0d 0a 0d 0a 09 | 73 20 3d 20 50 6c 61 79 |al;.....|s = Play|
|00001f00| 65 72 4f 77 6e 65 72 28 | 29 2e 4c 65 76 65 6c 2e |erOwner(|).Level.|
|00001f10| 47 61 6d 65 2e 50 61 72 | 73 65 4f 70 74 69 6f 6e |Game.Par|seOption|
|00001f20| 28 20 55 52 4c 2c 20 4b | 65 79 29 3b 0d 0a 09 69 |( URL, K|ey);...i|
|00001f30| 66 20 28 73 3d 3d 22 22 | 29 0d 0a 09 09 72 65 74 |f (s==""|)....ret|
|00001f40| 75 72 6e 20 44 65 66 61 | 75 6c 74 56 61 6c 3b 0d |urn Defa|ultVal;.|
|00001f50| 0a 09 65 6c 73 65 0d 0a | 09 09 72 65 74 75 72 6e |..else..|..return|
|00001f60| 20 73 3b 0d 0a 7d 0d 0a | 0d 0a 2f 2f 20 54 61 6b | s;..}..|..// Tak|
|00001f70| 65 20 61 20 73 74 72 69 | 6e 67 20 61 6e 64 20 73 |e a stri|ng and s|
|00001f80| 74 72 69 70 20 6f 75 74 | 20 63 6f 6c 6f 75 72 20 |trip out| colour |
|00001f90| 63 6f 64 65 73 0d 0a 73 | 74 61 74 69 63 20 66 75 |codes..s|tatic fu|
|00001fa0| 6e 63 74 69 6f 6e 20 73 | 74 72 69 6e 67 20 53 74 |nction s|tring St|
|00001fb0| 72 69 70 43 6f 6c 6f 72 | 43 6f 64 65 73 28 73 74 |ripColor|Codes(st|
|00001fc0| 72 69 6e 67 20 49 6e 53 | 74 72 69 6e 67 29 0d 0a |ring InS|tring)..|
|00001fd0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 69 6e 74 20 43 6f |{...loca|l int Co|
|00001fe0| 64 65 50 6f 73 3b 0d 0a | 0d 0a 09 43 6f 64 65 50 |dePos;..|...CodeP|
|00001ff0| 6f 73 20 3d 20 49 6e 53 | 74 72 28 49 6e 53 74 72 |os = InS|tr(InStr|
|00002000| 69 6e 67 2c 20 43 68 72 | 28 32 37 29 29 3b 0d 0a |ing, Chr|(27));..|
|00002010| 09 77 68 69 6c 65 28 43 | 6f 64 65 50 6f 73 20 21 |.while(C|odePos !|
|00002020| 3d 20 2d 31 20 26 26 20 | 43 6f 64 65 50 6f 73 20 |= -1 && |CodePos |
|00002030| 3c 20 4c 65 6e 28 49 6e | 53 74 72 69 6e 67 29 2d |< Len(In|String)-|
|00002040| 33 29 20 2f 2f 20 69 67 | 6e 6f 72 65 20 63 6f 6c |3) // ig|nore col|
|00002050| 6f 75 72 20 63 6f 64 65 | 73 20 61 74 20 74 68 65 |our code|s at the|
|00002060| 20 65 6e 64 20 6f 66 20 | 74 68 65 20 73 74 72 69 | end of |the stri|
|00002070| 6e 67 0d 0a 09 7b 0d 0a | 09 09 49 6e 53 74 72 69 |ng...{..|..InStri|
|00002080| 6e 67 20 3d 20 4c 65 66 | 74 28 49 6e 53 74 72 69 |ng = Lef|t(InStri|
|00002090| 6e 67 2c 20 43 6f 64 65 | 50 6f 73 29 24 4d 69 64 |ng, Code|Pos)$Mid|
|000020a0| 28 49 6e 53 74 72 69 6e | 67 2c 20 43 6f 64 65 50 |(InStrin|g, CodeP|
|000020b0| 6f 73 2b 34 29 3b 0d 0a | 0d 0a 09 09 43 6f 64 65 |os+4);..|....Code|
|000020c0| 50 6f 73 20 3d 20 49 6e | 53 74 72 28 49 6e 53 74 |Pos = In|Str(InSt|
|000020d0| 72 69 6e 67 2c 20 43 68 | 72 28 32 37 29 29 3b 0d |ring, Ch|r(27));.|
|000020e0| 0a 09 7d 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 49 |..}.....|return I|
|000020f0| 6e 53 74 72 69 6e 67 3b | 0d 0a 7d 0d 0a 0d 0a 73 |nString;|..}....s|
|00002100| 74 61 74 69 63 20 66 75 | 6e 63 74 69 6f 6e 20 73 |tatic fu|nction s|
|00002110| 74 72 69 6e 67 20 4d 61 | 6b 65 43 6f 6c 6f 72 43 |tring Ma|keColorC|
|00002120| 6f 64 65 28 63 6f 6c 6f | 72 20 4e 65 77 43 6f 6c |ode(colo|r NewCol|
|00002130| 6f 72 29 0d 0a 7b 0d 0a | 09 2f 2f 20 54 65 78 74 |or)..{..|.// Text|
|00002140| 20 63 6f 6c 6f 75 72 73 | 20 75 73 65 20 31 20 61 | colours| use 1 a|
|00002150| 73 20 30 2e 0d 0a 09 69 | 66 28 4e 65 77 43 6f 6c |s 0....i|f(NewCol|
|00002160| 6f 72 2e 52 20 3d 3d 20 | 30 29 0d 0a 09 09 4e 65 |or.R == |0)....Ne|
|00002170| 77 43 6f 6c 6f 72 2e 52 | 20 3d 20 31 3b 0d 0a 0d |wColor.R| = 1;...|
|00002180| 0a 09 69 66 28 4e 65 77 | 43 6f 6c 6f 72 2e 47 20 |..if(New|Color.G |
|00002190| 3d 3d 20 30 29 0d 0a 09 | 09 4e 65 77 43 6f 6c 6f |== 0)...|.NewColo|
|000021a0| 72 2e 47 20 3d 20 31 3b | 0d 0a 0d 0a 09 69 66 28 |r.G = 1;|.....if(|
|000021b0| 4e 65 77 43 6f 6c 6f 72 | 2e 42 20 3d 3d 20 30 29 |NewColor|.B == 0)|
|000021c0| 0d 0a 09 09 4e 65 77 43 | 6f 6c 6f 72 2e 42 20 3d |....NewC|olor.B =|
|000021d0| 20 31 3b 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 43 | 1;.....|return C|
|000021e0| 68 72 28 30 78 31 42 29 | 24 43 68 72 28 4e 65 77 |hr(0x1B)|$Chr(New|
|000021f0| 43 6f 6c 6f 72 2e 52 29 | 24 43 68 72 28 4e 65 77 |Color.R)|$Chr(New|
|00002200| 43 6f 6c 6f 72 2e 47 29 | 24 43 68 72 28 4e 65 77 |Color.G)|$Chr(New|
|00002210| 43 6f 6c 6f 72 2e 42 29 | 3b 0d 0a 7d 0d 0a 0d 0a |Color.B)|;..}....|
|00002220| 2f 2f 20 46 75 6e 63 74 | 69 6f 6e 73 0d 0a 0d 0a |// Funct|ions....|
|00002230| 65 76 65 6e 74 20 4d 65 | 6e 75 53 74 61 74 65 43 |event Me|nuStateC|
|00002240| 68 61 6e 67 65 28 65 4d | 65 6e 75 53 74 61 74 65 |hange(eM|enuState|
|00002250| 20 4e 65 77 73 74 61 74 | 65 29 0d 0a 7b 0d 0a 0d | Newstat|e)..{...|
|00002260| 0a 09 2f 2f 20 43 68 65 | 63 6b 20 66 6f 72 20 6e |..// Che|ck for n|
|00002270| 65 76 65 72 20 66 6f 63 | 75 73 0d 0a 0d 0a 09 62 |ever foc|us.....b|
|00002280| 50 65 6e 64 69 6e 67 46 | 6f 63 75 73 3d 66 61 6c |PendingF|ocus=fal|
|00002290| 73 65 3b 0d 0a 0d 0a 09 | 69 66 20 28 4e 65 77 53 |se;.....|if (NewS|
|000022a0| 74 61 74 65 3d 3d 4d 53 | 41 54 5f 46 6f 63 75 73 |tate==MS|AT_Focus|
|000022b0| 65 64 20 26 26 20 62 4e | 65 76 65 72 46 6f 63 75 |ed && bN|everFocu|
|000022c0| 73 29 0d 0a 09 09 4e 65 | 77 53 74 61 74 65 20 3d |s)....Ne|wState =|
|000022d0| 20 4d 53 41 54 5f 42 6c | 75 72 72 79 3b 0d 0a 0d | MSAT_Bl|urry;...|
|000022e0| 0a 09 4d 65 6e 75 53 74 | 61 74 65 20 3d 20 4e 65 |..MenuSt|ate = Ne|
|000022f0| 77 53 74 61 74 65 3b 0d | 0a 0d 0a 09 73 77 69 74 |wState;.|....swit|
|00002300| 63 68 20 28 4d 65 6e 75 | 53 74 61 74 65 29 0d 0a |ch (Menu|State)..|
|00002310| 09 7b 0d 0a 09 09 63 61 | 73 65 20 4d 53 41 54 5f |.{....ca|se MSAT_|
|00002320| 42 6c 75 72 72 79 3a 0d | 0a 09 09 09 62 48 61 73 |Blurry:.|....bHas|
|00002330| 46 6f 63 75 73 20 3d 20 | 66 61 6c 73 65 3b 0d 0a |Focus = |false;..|
|00002340| 09 09 09 4f 6e 44 65 41 | 63 74 69 76 61 74 65 28 |...OnDeA|ctivate(|
|00002350| 29 3b 0d 0a 09 09 09 62 | 72 65 61 6b 3b 0d 0a 0d |);.....b|reak;...|
|00002360| 0a 09 09 63 61 73 65 20 | 4d 53 41 54 5f 57 61 74 |...case |MSAT_Wat|
|00002370| 63 68 65 64 3a 0d 0a 0d | 0a 09 09 09 69 66 20 28 |ched:...|....if (|
|00002380| 62 46 6f 63 75 73 4f 6e | 57 61 74 63 68 29 0d 0a |bFocusOn|Watch)..|
|00002390| 09 09 09 7b 0d 0a 09 09 | 09 09 53 65 74 46 6f 63 |...{....|..SetFoc|
|000023a0| 75 73 28 4e 6f 6e 65 29 | 3b 0d 0a 09 09 09 09 72 |us(None)|;......r|
|000023b0| 65 74 75 72 6e 3b 0d 0a | 09 09 09 7d 0d 0a 0d 0a |eturn;..|...}....|
|000023c0| 09 09 09 4f 6e 57 61 74 | 63 68 28 29 3b 0d 0a 09 |...OnWat|ch();...|
|000023d0| 09 09 62 72 65 61 6b 3b | 0d 0a 0d 0a 09 09 63 61 |..break;|......ca|
|000023e0| 73 65 20 4d 53 41 54 5f | 46 6f 63 75 73 65 64 3a |se MSAT_|Focused:|
|000023f0| 0d 0a 09 09 09 62 48 61 | 73 46 6f 63 75 73 20 3d |.....bHa|sFocus =|
|00002400| 20 74 72 75 65 3b 0d 0a | 09 09 09 4f 6e 41 63 74 | true;..|...OnAct|
|00002410| 69 76 61 74 65 28 29 3b | 0d 0a 09 09 09 62 72 65 |ivate();|.....bre|
|00002420| 61 6b 3b 0d 0a 0d 0a 09 | 7d 0d 0a 0d 0a 09 69 66 |ak;.....|}.....if|
|00002430| 20 28 46 72 69 65 6e 64 | 6c 79 4c 61 62 65 6c 21 | (Friend|lyLabel!|
|00002440| 3d 4e 6f 6e 65 29 0d 0a | 09 09 46 72 69 65 6e 64 |=None)..|..Friend|
|00002450| 6c 79 4c 61 62 65 6c 2e | 4d 65 6e 75 53 74 61 74 |lyLabel.|MenuStat|
|00002460| 65 3d 4d 65 6e 75 53 74 | 61 74 65 3b 0d 0a 0d 0a |e=MenuSt|ate;....|
|00002470| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 49 6e |}....fun|ction In|
|00002480| 69 74 43 6f 6d 70 6f 6e | 65 6e 74 28 47 55 49 43 |itCompon|ent(GUIC|
|00002490| 6f 6e 74 72 6f 6c 6c 65 | 72 20 4d 79 43 6f 6e 74 |ontrolle|r MyCont|
|000024a0| 72 6f 6c 6c 65 72 2c 20 | 47 55 49 43 6f 6d 70 6f |roller, |GUICompo|
|000024b0| 6e 65 6e 74 20 4d 79 4f | 77 6e 65 72 29 0d 0a 7b |nent MyO|wner)..{|
|000024c0| 0d 0a 0d 0a 09 43 6f 6e | 74 72 6f 6c 6c 65 72 20 |.....Con|troller |
|000024d0| 3d 20 4d 79 43 6f 6e 74 | 72 6f 6c 6c 65 72 3b 0d |= MyCont|roller;.|
|000024e0| 0a 09 4d 65 6e 75 4f 77 | 6e 65 72 20 3d 20 4d 79 |..MenuOw|ner = My|
|000024f0| 4f 77 6e 65 72 3b 0d 0a | 0d 0a 09 53 74 79 6c 65 |Owner;..|...Style|
|00002500| 20 3d 20 43 6f 6e 74 72 | 6f 6c 6c 65 72 2e 47 65 | = Contr|oller.Ge|
|00002510| 74 53 74 79 6c 65 28 53 | 74 79 6c 65 4e 61 6d 65 |tStyle(S|tyleName|
|00002520| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00002530| 6e 20 49 6e 69 74 44 65 | 6c 65 67 61 74 65 73 28 |n InitDe|legates(|
|00002540| 29 3b 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 62 |);....fu|nction b|
|00002550| 6f 6f 6c 20 49 73 49 6e | 42 6f 75 6e 64 73 28 29 |ool IsIn|Bounds()|
|00002560| 09 2f 2f 20 53 63 72 69 | 70 74 20 76 65 72 73 69 |.// Scri|pt versi|
|00002570| 6f 6e 20 6f 66 20 50 65 | 72 66 6f 72 6d 48 69 74 |on of Pe|rformHit|
|00002580| 54 65 73 74 0d 0a 7b 0d | 0a 09 72 65 74 75 72 6e |Test..{.|..return|
|00002590| 20 28 20 28 43 6f 6e 74 | 72 6f 6c 6c 65 72 2e 4d | ( (Cont|roller.M|
|000025a0| 6f 75 73 65 58 20 3e 3d | 20 42 6f 75 6e 64 73 5b |ouseX >=| Bounds[|
|000025b0| 30 5d 20 26 26 20 43 6f | 6e 74 72 6f 6c 6c 65 72 |0] && Co|ntroller|
|000025c0| 2e 4d 6f 75 73 65 58 3c | 3d 42 6f 75 6e 64 73 5b |.MouseX<|=Bounds[|
|000025d0| 32 5d 29 20 26 26 20 28 | 43 6f 6e 74 72 6f 6c 6c |2]) && (|Controll|
|000025e0| 65 72 2e 4d 6f 75 73 65 | 59 20 3e 3d 20 42 6f 75 |er.Mouse|Y >= Bou|
|000025f0| 6e 64 73 5b 31 5d 20 26 | 26 20 43 6f 6e 74 72 6f |nds[1] &|& Contro|
|00002600| 6c 6c 65 72 2e 4d 6f 75 | 73 65 59 20 3c 3d 42 6f |ller.Mou|seY <=Bo|
|00002610| 75 6e 64 73 5b 33 5d 29 | 20 29 3b 0d 0a 7d 0d 0a |unds[3])| );..}..|
|00002620| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 62 6f 6f 6c 20 |..functi|on bool |
|00002630| 49 73 49 6e 43 6c 69 65 | 6e 74 42 6f 75 6e 64 73 |IsInClie|ntBounds|
|00002640| 28 29 0d 0a 7b 0d 0a 09 | 72 65 74 75 72 6e 20 28 |()..{...|return (|
|00002650| 20 28 43 6f 6e 74 72 6f | 6c 6c 65 72 2e 4d 6f 75 | (Contro|ller.Mou|
|00002660| 73 65 58 20 3e 3d 20 43 | 6c 69 65 6e 74 42 6f 75 |seX >= C|lientBou|
|00002670| 6e 64 73 5b 30 5d 20 26 | 26 20 43 6f 6e 74 72 6f |nds[0] &|& Contro|
|00002680| 6c 6c 65 72 2e 4d 6f 75 | 73 65 58 3c 3d 43 6c 69 |ller.Mou|seX<=Cli|
|00002690| 65 6e 74 42 6f 75 6e 64 | 73 5b 32 5d 29 20 26 26 |entBound|s[2]) &&|
|000026a0| 20 28 43 6f 6e 74 72 6f | 6c 6c 65 72 2e 4d 6f 75 | (Contro|ller.Mou|
|000026b0| 73 65 59 20 3e 3d 20 43 | 6c 69 65 6e 74 42 6f 75 |seY >= C|lientBou|
|000026c0| 6e 64 73 5b 31 5d 20 26 | 26 20 43 6f 6e 74 72 6f |nds[1] &|& Contro|
|000026d0| 6c 6c 65 72 2e 4d 6f 75 | 73 65 59 20 3c 3d 43 6c |ller.Mou|seY <=Cl|
|000026e0| 69 65 6e 74 42 6f 75 6e | 64 73 5b 33 5d 29 20 29 |ientBoun|ds[3]) )|
|000026f0| 3b 0d 0a 7d 0d 0a 0d 0a | 65 76 65 6e 74 20 53 65 |;..}....|event Se|
|00002700| 74 46 6f 63 75 73 28 47 | 55 49 43 6f 6d 70 6f 6e |tFocus(G|UICompon|
|00002710| 65 6e 74 20 57 68 6f 29 | 0d 0a 7b 0d 0a 09 69 66 |ent Who)|..{...if|
|00002720| 20 28 62 4e 65 76 65 72 | 46 6f 63 75 73 29 0d 0a | (bNever|Focus)..|
|00002730| 09 7b 0d 0a 09 09 69 66 | 20 28 46 6f 63 75 73 49 |.{....if| (FocusI|
|00002740| 6e 73 74 65 61 64 20 21 | 3d 20 4e 6f 6e 65 29 0d |nstead !|= None).|
|00002750| 0a 09 09 09 46 6f 63 75 | 73 49 6e 73 74 65 61 64 |....Focu|sInstead|
|00002760| 2e 53 65 74 46 6f 63 75 | 73 28 57 68 6f 29 3b 0d |.SetFocu|s(Who);.|
|00002770| 0a 0d 0a 09 09 72 65 74 | 75 72 6e 3b 0d 0a 09 7d |.....ret|urn;...}|
|00002780| 0d 0a 0d 0a 09 4d 65 6e | 75 53 74 61 74 65 43 68 |.....Men|uStateCh|
|00002790| 61 6e 67 65 28 4d 53 41 | 54 5f 46 6f 63 75 73 65 |ange(MSA|T_Focuse|
|000027a0| 64 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 43 6f 6e 74 |d);.....|if (Cont|
|000027b0| 72 6f 6c 6c 65 72 2e 46 | 6f 63 75 73 65 64 43 6f |roller.F|ocusedCo|
|000027c0| 6e 74 72 6f 6c 21 3d 4e | 6f 6e 65 29 0d 0a 20 20 |ntrol!=N|one).. |
|000027d0| 20 20 7b 0d 0a 20 20 20 | 20 09 69 66 20 20 28 43 | {.. | .if (C|
|000027e0| 6f 6e 74 72 6f 6c 6c 65 | 72 2e 46 6f 63 75 73 65 |ontrolle|r.Focuse|
|000027f0| 64 43 6f 6e 74 72 6f 6c | 20 3d 3d 20 53 65 6c 66 |dControl| == Self|
|00002800| 29 09 2f 2f 20 41 6c 72 | 65 61 64 79 20 46 6f 63 |).// Alr|eady Foc|
|00002810| 75 73 65 64 0d 0a 09 09 | 09 72 65 74 75 72 6e 3b |used....|.return;|
|00002820| 0d 0a 20 20 20 20 20 20 | 20 20 65 6c 73 65 0d 0a |.. | else..|
|00002830| 09 09 09 43 6f 6e 74 72 | 6f 6c 6c 65 72 2e 46 6f |...Contr|oller.Fo|
|00002840| 63 75 73 65 64 43 6f 6e | 74 72 6f 6c 2e 4c 6f 73 |cusedCon|trol.Los|
|00002850| 65 46 6f 63 75 73 28 4e | 6f 6e 65 29 3b 0d 0a 09 |eFocus(N|one);...|
|00002860| 7d 0d 0a 0d 0a 09 62 50 | 65 6e 64 69 6e 67 46 6f |}.....bP|endingFo|
|00002870| 63 75 73 20 3d 20 74 72 | 75 65 3b 0d 0a 0d 0a 09 |cus = tr|ue;.....|
|00002880| 43 6f 6e 74 72 6f 6c 6c | 65 72 2e 46 6f 63 75 73 |Controll|er.Focus|
|00002890| 65 64 43 6f 6e 74 72 6f | 6c 20 3d 20 73 65 6c 66 |edContro|l = self|
|000028a0| 3b 0d 0a 0d 0a 09 69 66 | 20 28 4d 65 6e 75 4f 77 |;.....if| (MenuOw|
|000028b0| 6e 65 72 21 3d 4e 6f 6e | 65 29 0d 0a 09 09 4d 65 |ner!=Non|e)....Me|
|000028c0| 6e 75 4f 77 6e 65 72 2e | 53 65 74 46 6f 63 75 73 |nuOwner.|SetFocus|
|000028d0| 28 73 65 6c 66 29 3b 0d | 0a 7d 0d 0a 0d 0a 65 76 |(self);.|.}....ev|
|000028e0| 65 6e 74 20 4c 6f 73 65 | 46 6f 63 75 73 28 47 55 |ent Lose|Focus(GU|
|000028f0| 49 43 6f 6d 70 6f 6e 65 | 6e 74 20 53 65 6e 64 65 |ICompone|nt Sende|
|00002900| 72 29 0d 0a 7b 0d 0a 09 | 69 66 20 28 43 6f 6e 74 |r)..{...|if (Cont|
|00002910| 72 6f 6c 6c 65 72 21 3d | 4e 6f 6e 65 29 0d 0a 09 |roller!=|None)...|
|00002920| 09 43 6f 6e 74 72 6f 6c | 6c 65 72 2e 46 6f 63 75 |.Control|ler.Focu|
|00002930| 73 65 64 43 6f 6e 74 72 | 6f 6c 20 3d 20 4e 6f 6e |sedContr|ol = Non|
|00002940| 65 3b 0d 0a 0d 0a 09 4d | 65 6e 75 53 74 61 74 65 |e;.....M|enuState|
|00002950| 43 68 61 6e 67 65 28 4d | 53 41 54 5f 42 6c 75 72 |Change(M|SAT_Blur|
|00002960| 72 79 29 3b 0d 0a 0d 0a | 09 69 66 20 28 4d 65 6e |ry);....|.if (Men|
|00002970| 75 4f 77 6e 65 72 21 3d | 4e 6f 6e 65 29 0d 0a 09 |uOwner!=|None)...|
|00002980| 09 4d 65 6e 75 4f 77 6e | 65 72 2e 4c 6f 73 65 46 |.MenuOwn|er.LoseF|
|00002990| 6f 63 75 73 28 53 65 6c | 66 29 3b 0d 0a 7d 0d 0a |ocus(Sel|f);..}..|
|000029a0| 0d 0a 65 76 65 6e 74 20 | 62 6f 6f 6c 20 46 6f 63 |..event |bool Foc|
|000029b0| 75 73 46 69 72 73 74 28 | 47 55 49 43 6f 6d 70 6f |usFirst(|GUICompo|
|000029c0| 6e 65 6e 74 20 53 65 6e | 64 65 72 29 09 2f 2f 20 |nent Sen|der).// |
|000029d0| 46 6f 63 75 73 20 79 6f | 75 72 20 66 69 72 73 74 |Focus yo|ur first|
|000029e0| 20 63 68 69 6c 64 2c 20 | 6f 72 20 79 6f 75 72 73 | child, |or yours|
|000029f0| 65 6c 66 20 69 66 20 6e | 6f 20 63 68 69 6c 64 72 |elf if n|o childr|
|00002a00| 65 61 6e 0d 0a 7b 0d 0a | 0d 0a 09 69 66 20 28 20 |ean..{..|...if ( |
|00002a10| 28 21 62 56 69 73 69 62 | 6c 65 29 20 7c 7c 20 28 |(!bVisib|le) || (|
|00002a20| 62 4e 65 76 65 72 46 6f | 63 75 73 29 20 7c 7c 20 |bNeverFo|cus) || |
|00002a30| 28 4d 65 6e 75 53 74 61 | 74 65 3d 3d 4d 53 41 54 |(MenuSta|te==MSAT|
|00002a40| 5f 44 69 73 61 62 6c 65 | 64 29 20 7c 7c 20 28 21 |_Disable|d) || (!|
|00002a50| 62 54 61 62 53 74 6f 70 | 29 20 29 0d 0a 09 09 72 |bTabStop|) )....r|
|00002a60| 65 74 75 72 6e 20 66 61 | 6c 73 65 3b 0d 0a 0d 0a |eturn fa|lse;....|
|00002a70| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 7d |.return |true;..}|
|00002a80| 0d 0a 0d 0a 65 76 65 6e | 74 20 62 6f 6f 6c 20 46 |....even|t bool F|
|00002a90| 6f 63 75 73 4c 61 73 74 | 28 47 55 49 43 6f 6d 70 |ocusLast|(GUIComp|
|00002aa0| 6f 6e 65 6e 74 20 53 65 | 6e 64 65 72 29 20 2f 2f |onent Se|nder) //|
|00002ab0| 20 46 6f 63 75 73 20 79 | 6f 75 72 20 6c 61 73 74 | Focus y|our last|
|00002ac0| 20 63 68 69 6c 64 2c 20 | 6f 72 20 79 6f 75 72 73 | child, |or yours|
|00002ad0| 65 6c 66 0d 0a 7b 0d 0a | 09 69 66 20 28 20 28 21 |elf..{..|.if ( (!|
|00002ae0| 62 56 69 73 69 62 6c 65 | 29 20 7c 7c 20 28 62 4e |bVisible|) || (bN|
|00002af0| 65 76 65 72 46 6f 63 75 | 73 29 20 7c 7c 20 28 4d |everFocu|s) || (M|
|00002b00| 65 6e 75 53 74 61 74 65 | 3d 3d 4d 53 41 54 5f 44 |enuState|==MSAT_D|
|00002b10| 69 73 61 62 6c 65 64 29 | 20 7c 7c 20 28 21 62 54 |isabled)| || (!bT|
|00002b20| 61 62 53 74 6f 70 29 20 | 29 0d 0a 09 09 72 65 74 |abStop) |)....ret|
|00002b30| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 0d 0a 09 53 |urn fals|e;.....S|
|00002b40| 65 74 46 6f 63 75 73 28 | 4e 6f 6e 65 29 3b 0d 0a |etFocus(|None);..|
|00002b50| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 7d |.return |true;..}|
|00002b60| 0d 0a 0d 0a 65 76 65 6e | 74 20 62 6f 6f 6c 20 4e |....even|t bool N|
|00002b70| 65 78 74 43 6f 6e 74 72 | 6f 6c 28 47 55 49 43 6f |extContr|ol(GUICo|
|00002b80| 6d 70 6f 6e 65 6e 74 20 | 53 65 6e 64 65 72 29 0d |mponent |Sender).|
|00002b90| 0a 7b 0d 0a 09 69 66 20 | 28 4d 65 6e 75 4f 77 6e |.{...if |(MenuOwn|
|00002ba0| 65 72 21 3d 4e 6f 6e 65 | 29 0d 0a 09 09 72 65 74 |er!=None|)....ret|
|00002bb0| 75 72 6e 20 4d 65 6e 75 | 4f 77 6e 65 72 2e 4e 65 |urn Menu|Owner.Ne|
|00002bc0| 78 74 43 6f 6e 74 72 6f | 6c 28 53 65 6c 66 29 3b |xtContro|l(Self);|
|00002bd0| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 66 61 6c 73 |.....ret|urn fals|
|00002be0| 65 3b 0d 0a 7d 0d 0a 0d | 0a 65 76 65 6e 74 20 62 |e;..}...|.event b|
|00002bf0| 6f 6f 6c 20 50 72 65 76 | 43 6f 6e 74 72 6f 6c 28 |ool Prev|Control(|
|00002c00| 47 55 49 43 6f 6d 70 6f | 6e 65 6e 74 20 53 65 6e |GUICompo|nent Sen|
|00002c10| 64 65 72 29 0d 0a 7b 0d | 0a 09 69 66 20 28 4d 65 |der)..{.|..if (Me|
|00002c20| 6e 75 4f 77 6e 65 72 21 | 3d 4e 6f 6e 65 29 0d 0a |nuOwner!|=None)..|
|00002c30| 09 09 72 65 74 75 72 6e | 20 4d 65 6e 75 4f 77 6e |..return| MenuOwn|
|00002c40| 65 72 2e 50 72 65 76 43 | 6f 6e 74 72 6f 6c 28 53 |er.PrevC|ontrol(S|
|00002c50| 65 6c 66 29 3b 0d 0a 0d | 0a 09 72 65 74 75 72 6e |elf);...|..return|
|00002c60| 20 66 61 6c 73 65 3b 0d | 0a 7d 0d 0a 0d 0a 65 76 | false;.|.}....ev|
|00002c70| 65 6e 74 20 62 6f 6f 6c | 20 4e 65 78 74 50 61 67 |ent bool| NextPag|
|00002c80| 65 28 29 0d 0a 7b 0d 0a | 09 69 66 20 28 4d 65 6e |e()..{..|.if (Men|
|00002c90| 75 4f 77 6e 65 72 20 21 | 3d 20 4e 6f 6e 65 29 0d |uOwner !|= None).|
|00002ca0| 0a 09 09 72 65 74 75 72 | 6e 20 4d 65 6e 75 4f 77 |...retur|n MenuOw|
|00002cb0| 6e 65 72 2e 4e 65 78 74 | 50 61 67 65 28 29 3b 0d |ner.Next|Page();.|
|00002cc0| 0a 0d 0a 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |....retu|rn false|
|00002cd0| 3b 0d 0a 7d 0d 0a 0d 0a | 65 76 65 6e 74 20 62 6f |;..}....|event bo|
|00002ce0| 6f 6c 20 50 72 65 76 50 | 61 67 65 28 29 0d 0a 7b |ol PrevP|age()..{|
|00002cf0| 0d 0a 09 69 66 20 28 4d | 65 6e 75 4f 77 6e 65 72 |...if (M|enuOwner|
|00002d00| 20 21 3d 20 4e 6f 6e 65 | 29 0d 0a 09 09 72 65 74 | != None|)....ret|
|00002d10| 75 72 6e 20 4d 65 6e 75 | 4f 77 6e 65 72 2e 50 72 |urn Menu|Owner.Pr|
|00002d20| 65 76 50 61 67 65 28 29 | 3b 0d 0a 0d 0a 09 72 65 |evPage()|;.....re|
|00002d30| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 7d 0d 0a |turn fal|se;..}..|
|00002d40| 0d 0a 2f 2f 20 46 6f 72 | 63 65 20 63 6f 6e 74 72 |..// For|ce contr|
|00002d50| 6f 6c 20 74 6f 20 75 73 | 65 20 73 61 6d 65 20 61 |ol to us|e same a|
|00002d60| 72 65 61 20 61 73 20 69 | 74 73 20 4d 65 6e 75 4f |rea as i|ts MenuO|
|00002d70| 77 6e 65 72 2e 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |wner...f|unction |
|00002d80| 46 69 6c 6c 4f 77 6e 65 | 72 28 29 0d 0a 7b 0d 0a |FillOwne|r()..{..|
|00002d90| 09 57 69 6e 4c 65 66 74 | 20 3d 20 30 2e 30 3b 0d |.WinLeft| = 0.0;.|
|00002da0| 0a 09 57 69 6e 54 6f 70 | 20 3d 20 30 2e 30 3b 0d |..WinTop| = 0.0;.|
|00002db0| 0a 09 57 69 6e 57 69 64 | 74 68 20 3d 20 31 2e 30 |..WinWid|th = 1.0|
|00002dc0| 3b 0d 0a 09 57 69 6e 48 | 65 69 67 68 74 20 3d 20 |;...WinH|eight = |
|00002dd0| 31 2e 30 3b 0d 0a 09 62 | 53 63 61 6c 65 54 6f 50 |1.0;...b|ScaleToP|
|00002de0| 61 72 65 6e 74 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |arent = |true;...|
|00002df0| 62 42 6f 75 6e 64 54 6f | 50 61 72 65 6e 74 20 3d |bBoundTo|Parent =|
|00002e00| 20 74 72 75 65 3b 0d 0a | 7d 0d 0a 0d 0a 65 76 65 | true;..|}....eve|
|00002e10| 6e 74 20 53 65 74 56 69 | 73 69 62 69 6c 69 74 79 |nt SetVi|sibility|
|00002e20| 28 62 6f 6f 6c 20 62 49 | 73 56 69 73 69 62 6c 65 |(bool bI|sVisible|
|00002e30| 29 0d 0a 7b 0d 0a 09 62 | 56 69 73 69 62 6c 65 20 |)..{...b|Visible |
|00002e40| 3d 20 62 49 73 56 69 73 | 69 62 6c 65 3b 0d 0a 0d |= bIsVis|ible;...|
|00002e50| 0a 20 20 20 20 69 66 20 | 28 62 56 69 73 69 62 6c |. if |(bVisibl|
|00002e60| 65 29 0d 0a 20 20 20 20 | 09 4f 6e 53 68 6f 77 28 |e).. |.OnShow(|
|00002e70| 29 3b 0d 0a 20 20 20 20 | 65 6c 73 65 0d 0a 20 20 |);.. |else.. |
|00002e80| 20 20 09 4f 6e 48 69 64 | 65 28 29 3b 0d 0a 7d 0d | .OnHid|e();..}.|
|00002e90| 0a 0d 0a 65 76 65 6e 74 | 20 48 69 64 65 28 29 0d |...event| Hide().|
|00002ea0| 0a 7b 0d 0a 09 53 65 74 | 56 69 73 69 62 69 6c 69 |.{...Set|Visibili|
|00002eb0| 74 79 28 66 61 6c 73 65 | 29 3b 0d 0a 7d 0d 0a 0d |ty(false|);..}...|
|00002ec0| 0a 65 76 65 6e 74 20 53 | 68 6f 77 28 29 0d 0a 7b |.event S|how()..{|
|00002ed0| 0d 0a 09 53 65 74 56 69 | 73 69 62 69 6c 69 74 79 |...SetVi|sibility|
|00002ee0| 28 74 72 75 65 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |(true);.|.}....fu|
|00002ef0| 6e 63 74 69 6f 6e 20 53 | 65 74 46 72 69 65 6e 64 |nction S|etFriend|
|00002f00| 6c 79 4c 61 62 65 6c 28 | 47 55 49 4c 61 62 65 6c |lyLabel(|GUILabel|
|00002f10| 20 4e 65 77 4c 61 62 65 | 6c 29 0d 0a 7b 0d 0a 09 | NewLabe|l)..{...|
|00002f20| 46 72 69 65 6e 64 6c 79 | 4c 61 62 65 6c 20 3d 20 |Friendly|Label = |
|00002f30| 4e 65 77 4c 61 62 65 6c | 3b 0d 0a 7d 0d 0a 0d 0a |NewLabel|;..}....|
|00002f40| 66 75 6e 63 74 69 6f 6e | 20 53 65 74 48 69 6e 74 |function| SetHint|
|00002f50| 28 73 74 72 69 6e 67 20 | 4e 65 77 48 69 6e 74 29 |(string |NewHint)|
|00002f60| 0d 0a 7b 0d 0a 09 48 69 | 6e 74 20 3d 20 4e 65 77 |..{...Hi|nt = New|
|00002f70| 48 69 6e 74 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |Hint;..}|....func|
|00002f80| 74 69 6f 6e 20 53 65 74 | 4c 69 6e 6b 73 28 47 55 |tion Set|Links(GU|
|00002f90| 49 43 6f 6d 70 6f 6e 65 | 6e 74 20 63 55 70 2c 47 |ICompone|nt cUp,G|
|00002fa0| 55 49 43 6f 6d 70 6f 6e | 65 6e 74 20 63 44 6f 77 |UICompon|ent cDow|
|00002fb0| 6e 2c 47 55 49 43 6f 6d | 70 6f 6e 65 6e 74 20 63 |n,GUICom|ponent c|
|00002fc0| 4c 65 66 74 2c 47 55 49 | 43 6f 6d 70 6f 6e 65 6e |Left,GUI|Componen|
|00002fd0| 74 20 63 52 69 67 68 74 | 29 0d 0a 7b 0d 0a 09 4c |t cRight|)..{...L|
|00002fe0| 69 6e 6b 73 5b 30 5d 20 | 3d 20 63 55 70 3b 0d 0a |inks[0] |= cUp;..|
|00002ff0| 20 20 20 20 4c 69 6e 6b | 73 5b 31 5d 20 3d 20 63 | Link|s[1] = c|
|00003000| 44 6f 77 6e 3b 0d 0a 20 | 20 20 20 4c 69 6e 6b 73 |Down;.. | Links|
|00003010| 5b 32 5d 20 3d 20 63 4c | 65 66 74 3b 0d 0a 20 20 |[2] = cL|eft;.. |
|00003020| 20 20 4c 69 6e 6b 73 5b | 33 5d 20 3d 20 63 52 69 | Links[|3] = cRi|
|00003030| 67 68 74 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |ght;..}.|...funct|
|00003040| 69 6f 6e 20 53 65 74 4c | 69 6e 6b 4f 76 65 72 72 |ion SetL|inkOverr|
|00003050| 69 64 65 73 28 47 55 49 | 43 6f 6d 70 6f 6e 65 6e |ides(GUI|Componen|
|00003060| 74 20 63 55 70 2c 47 55 | 49 43 6f 6d 70 6f 6e 65 |t cUp,GU|ICompone|
|00003070| 6e 74 20 63 44 6f 77 6e | 2c 47 55 49 43 6f 6d 70 |nt cDown|,GUIComp|
|00003080| 6f 6e 65 6e 74 20 63 4c | 65 66 74 2c 47 55 49 43 |onent cL|eft,GUIC|
|00003090| 6f 6d 70 6f 6e 65 6e 74 | 20 63 52 69 67 68 74 29 |omponent| cRight)|
|000030a0| 0d 0a 7b 0d 0a 09 4c 69 | 6e 6b 4f 76 65 72 72 69 |..{...Li|nkOverri|
|000030b0| 64 65 73 5b 30 5d 20 3d | 20 63 55 70 3b 0d 0a 20 |des[0] =| cUp;.. |
|000030c0| 20 20 20 4c 69 6e 6b 4f | 76 65 72 72 69 64 65 73 | LinkO|verrides|
|000030d0| 5b 31 5d 20 3d 20 63 44 | 6f 77 6e 3b 0d 0a 20 20 |[1] = cD|own;.. |
|000030e0| 20 20 4c 69 6e 6b 4f 76 | 65 72 72 69 64 65 73 5b | LinkOv|errides[|
|000030f0| 32 5d 20 3d 20 63 4c 65 | 66 74 3b 0d 0a 20 20 20 |2] = cLe|ft;.. |
|00003100| 20 4c 69 6e 6b 4f 76 65 | 72 72 69 64 65 73 5b 33 | LinkOve|rrides[3|
|00003110| 5d 20 3d 20 63 52 69 67 | 68 74 3b 0d 0a 7d 0d 0a |] = cRig|ht;..}..|
|00003120| 0d 0a 0d 0a 2f 2f 20 54 | 68 65 20 41 63 74 75 61 |....// T|he Actua|
|00003130| 6c 58 58 58 58 20 66 75 | 6e 63 74 69 6f 6e 73 20 |lXXXX fu|nctions |
|00003140| 61 72 65 20 6e 6f 74 20 | 76 69 61 62 6c 65 20 75 |are not |viable u|
|00003150| 6e 74 69 6c 20 61 66 74 | 65 72 20 74 68 65 20 66 |ntil aft|er the f|
|00003160| 69 72 73 74 20 72 65 6e | 64 65 72 20 73 6f 20 64 |irst ren|der so d|
|00003170| 6f 6e 27 74 0d 0a 2f 2f | 20 75 73 65 20 74 68 65 |on't..//| use the|
|00003180| 6d 20 69 6e 20 69 6e 69 | 74 73 0d 0a 6e 61 74 69 |m in ini|ts..nati|
|00003190| 76 65 20 66 75 6e 63 74 | 69 6f 6e 20 66 6c 6f 61 |ve funct|ion floa|
|000031a0| 74 20 41 63 74 75 61 6c | 57 69 64 74 68 28 29 3b |t Actual|Width();|
|000031b0| 0d 0a 6e 61 74 69 76 65 | 20 66 75 6e 63 74 69 6f |..native| functio|
|000031c0| 6e 20 66 6c 6f 61 74 20 | 41 63 74 75 61 6c 48 65 |n float |ActualHe|
|000031d0| 69 67 68 74 28 29 3b 0d | 0a 6e 61 74 69 76 65 20 |ight();.|.native |
|000031e0| 66 75 6e 63 74 69 6f 6e | 20 66 6c 6f 61 74 20 41 |function| float A|
|000031f0| 63 74 75 61 6c 4c 65 66 | 74 28 29 3b 0d 0a 6e 61 |ctualLef|t();..na|
|00003200| 74 69 76 65 20 66 75 6e | 63 74 69 6f 6e 20 46 6c |tive fun|ction Fl|
|00003210| 6f 61 74 20 41 63 74 75 | 61 6c 54 6f 70 28 29 3b |oat Actu|alTop();|
|00003220| 0d 0a 0d 0a 00 | |..... | |
+--------+-------------------------+-------------------------+--------+--------+